Optionalcolor: ColorRepresentationOptionalintensity: numberOptionaldistance: numberOptionaldecay: numberIf set to true light will cast dynamic shadows.
Warning: This is expensive and requires tweaking to get shadows looking right.
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.
When WebGLRenderer.useLegacyLights | legacy lighting mode is disabled — intensity is the luminous intensity of the light measured in candela (cd).
ReadonlyisObject's parent in the scene graph.
ReadonlypositionObject's local position.
The light's power. When WebGLRenderer.useLegacyLights | legacy lighting mode is disabled — power is the luminous power of the light measured in lumens (lm).
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 PointLight with additional properties for serialization and UI A point light emits light in all directions from a single point in space.
Note - gltf serialization is handled by GLTFLightExtrasExtension