Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/lights/DirectionalLight.d.ts>DirectionalLight

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class DirectionalLight
extends Light
import { DirectionalLight } from "https://deno.land/x/threejs_4_deno@v121/src/lights/DirectionalLight.d.ts";

Examples

// White directional light at half intensity shining from the top. const directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 ); directionalLight.position.set( 0, 1, 0 ); scene.add( directionalLight );

Constructors

new
DirectionalLight(color?: Color | string | number, intensity?: number)

Properties

intensity: number

Light's intensity.

readonly
isDirectionalLight: true
position: Vector3
target: Object3D

Target used for shadow camera orientation.

type: string