Optional
color: ColorRepresentationOptional
intensity: numberWhether the object gets rendered into shadow map.
If set to true
light will cast dynamic shadows.
Warning: This is expensive and requires tweaking to get shadows looking right.
DirectionalLightShadow for details.
Array with object's children.
Returns a clone of this
object and optionally all descendants.
Optional
recursive: booleanIf true, descendants of the object are also cloned. Default true
Color of the light. \
Copies value of all the properties from the source to this instance.
Fire an event type.
The event that gets fired.
Searches through an object and its children, starting with the object itself, and returns the first with a matching id.
Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
Searches through an object and its children, starting with the object itself, and returns the first with a property that matches the value given.
The light's intensity, or strength. When legacy lighting mode is disabled, the units of intensity depend on the type of light.
Readonly
isObject's parent in the scene graph.
Readonly
positionThis is set equal to THREE.Object3D.DEFAULT_UP, so that the light shines from the top down.
Object3D.DEFAULT_UP (0, 1, 0)
Group for info on manually grouping objects.
Readonly
rotationObject's local rotation (Euler angles), in radians.
Dispatches 'objectUpdate' event on object.
Executes the callback on this object and all descendants.
Executes the callback on all ancestors.
Like traverse, but the callback will only be executed for visible objects
Object gets rendered if true
.
Protected
_mapProtected
_shadowProtected
_shadowMoves the bounding box center of the object to the center of the world
Scales the object to fit the given radius.
Extension of three.js DirectionalLight with additional properties for serialization and UI A directional light is a light source that has a position but no dimensions - a single point in space that emits light in a specific direction.
Note - gltf serialization is handled by GLTFLightExtrasExtension