Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.js>DirectionalLight

A simple transformation of three.js for use within a Deno workflow
Go to Latest
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 );

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