class DirectionalLight
extends Light
Re-export
import { DirectionalLight } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
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 );
// 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
position: Vector3
shadow: DirectionalLightShadow
target: Object3D
Target used for shadow camera orientation.