View that owns this PointLight. When destroyed, the View will destroy this PointLight as well.
The PointLight configuration
True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyID of this PointLight, unique within the View.
Readonly
viewThe View to which this PointLight belongs.
Gets the RGB color of this PointLight.
Default value is [0.7, 0.7, 0.8]
.
The PointLight's RGB color.
Sets the RGB color of this PointLight.
Default value is [0.7, 0.7, 0.8]
.
The PointLight's RGB color.
Gets the constant attenuation factor for this PointLight.
Default value is 0
.
The constant attenuation factor.
Sets the constant attenuation factor for this PointLight.
Default value is 0
.
The constant attenuation factor.
Gets the intensity of this PointLight.
Default value is 1.0
for maximum intensity.
The PointLight's intensity.
Sets the intensity of this PointLight.
Default intensity is 1.0
for maximum intensity.
The PointLight's intensity
Gets the linear attenuation factor for this PointLight.
Default value is 0
.
The linear attenuation factor.
Sets the linear attenuation factor for this PointLight.
Default value is 0
.
The linear attenuation factor.
Gets the position of this PointLight.
This will be either World- or View-space, depending on the value of PointLight.space.
Default value is [1.0, 1.0, 1.0]
.
The position.
Sets the position of this PointLight.
This will be either World- or View-space, depending on the value of PointLight.space.
Default value is [1.0, 1.0, 1.0]
.
The position.
Gets the quadratic attenuation factor for this PointLight.
Default value is 0
.
The quadratic attenuation factor.
Sets the quadratic attenuation factor for this PointLight.
Default value is 0
.
The quadratic attenuation factor.
The coordinate system the PointLight is defined in - "view"
or "space"
.
Protected
cleanForces this component to action any deferred state updates.
Protected
cleanGives this component an opportunity to action any defered state updates.
Destroys this PointLight.
Protected
errorProtected
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
Configures this PointLight.
Ignores PointLightParams.space, because PointLight.space is not dynamically updatable.
Protected
logProtected
Logs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Protected
setFlags this component as having a defered state updates it needs to perform.
Gets the current configuration of this PointLight.
Protected
warnProtected
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Emits an event when the Component has been destroyed.
A positional light source within a View.