Optionalcolor: ColorRepresentationOptionalintensity: numberOptionaldistance: numberOptionalangle: numberOptionalpenumbra: numberOptionaldecay: numberMaximum extent of the spotlight, in radians, from its direction.
If set to true light will cast dynamic shadows.
Array with object's children.
Color of the light. \
The amount the light dims along the distance of the light. In context of physically-correct rendering the default value should not be changed.
When Default mode — When distance is zero, light does not attenuate. When distance is non-zero, light will attenuate linearly from maximum intensity at the light's position down to zero at this distance from the light.
When WebGLRenderer.useLegacyLights | legacy lighting mode is disabled — When distance is zero,
light will attenuate according to inverse-square law to infinite distance.
When distance is non-zero, light will attenuate according to inverse-square law until near the distance cutoff,
where it will then attenuate quickly and smoothly to 0. Inherently, cutoffs are not physically correct.
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.
ReadonlyisObject's parent in the scene graph.
Percent of the SpotLight cone that is attenuated due to penumbra.
ReadonlypositionThis is set equal to THREE.Object3D.DEFAULT_UP | Object3D.DEFAULT_UP (0, 1, 0), so that the light shines from the top down.
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 SpotLight with additional properties for serialization and UI A spot light emits light from a single point in one direction, along a cone that increases in size the further from the light it gets.
Note - gltf serialization is handled by GLTFLightExtrasExtension