Optional
color: ColorRepresentationOptional
intensity: numberOptional
distance: numberOptional
decay: numberIf set to true
light will cast dynamic shadows.
Warning: This is expensive and requires tweaking to get shadows looking right.
PointLightShadow 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.
The amount the light dims along the distance of the light. In context of physically-correct rendering the default value should not be changed.
Fire an event type.
The event that gets fired.
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.
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.
When WebGLRenderer.useLegacyLights | legacy lighting mode is disabled — intensity is the luminous intensity of the light measured in candela (cd).
Readonly
isObject's parent in the scene graph.
Readonly
positionObject'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).
Group for info on manually grouping objects.
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
_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 PointLight with additional properties for serialization and UI
Note - gltf serialization is handled by GLTFLightExtrasExtension