Optionalcolor: ColorRepresentationOptionalintensity: numberWhether the object gets rendered into shadow map.
Array with object's children.
Color of the light. \
Searches through an object and its children, starting with the object itself, and returns the first with a matching id.
Unique number of the object instance. Expects a Integer
Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
String to match to the children's Object3D.name property.
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 property name to search for.
value of the given property.
The light's intensity, or strength. The units of intensity depend on the type of light.
ReadonlyisObject's parent in the scene graph.
ReadonlypositionThis is set equal to THREE.Object3D.DEFAULT_UP, so that the light shines from the top down.
Object3D.DEFAULT_UP (0, 1, 0)
ReadonlyrotationObject'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.
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