Light constructor
CameraRenderer or GPUCurtains used to create this Light.
LightParams used to create this Light.
ReadonlyuuidThe universal unique id of this Light
CameraRenderer used by this Light
Options used to create this Light.
CameraRenderer corresponding BufferBinding that holds all the bindings to send to the shaders.
Empty object to store any additional data or custom properties into your Light.
function assigned to the onBeforeRender callback
Transformation object of the Object3D
Matrices object of the Object3D
Vec3 holding the actual position of this Object3D from its worldMatrix.
Children Object3D in the scene graph, used to compute their own worldMatrix.
Whether at least one of this Object3D matrix needs an update.
Set this Light intensity and update the CameraRenderer corresponding BufferBinding.
The new Light intensity.
Get whether this Light is visible or not.
Set this Light visible value, and update its actualColor property accordingly.
Get whether all this Light parents are visible or not. Should not be used directly.
Set this Light parent visiblity, and update its actualColor property accordingly. Should not be used directly.
Get our quaternion
Get our model matrix
Get our world matrix
Set or reset this light CameraRenderer.
New CameraRenderer or GPUCurtains instance to use.
Set or reset this Light CameraRenderer corresponding BufferBinding.
Resend all properties to the CameraRenderer corresponding BufferBinding. Called when the maximum number of corresponding Light has been overflowed or when updating the Light renderer.
Whether to reset the Light shadow if any.
Update the CameraRenderer corresponding BufferBinding input value and tell the renderer camera, lights and shadows bind group to update.
name of the property to update.
new value of the property.
type of light.
Called by the Scene before updating the matrix stack.
Callback to execute before updating the Scene matrix stack. This means it is called early and allows to update transformations values before actually setting the Light matrices. The callback won't be called if the renderer is not ready.
callback to run just before updating the Scene matrix stack.
Destroy this Light.
Set our transforms properties and vectors onChange callbacks
Tell our model matrix to update
Set our model matrix and world matrix
Set our model matrix shouldUpdate flag to true (tell it to update)
Set our world matrix shouldUpdate flag to true (tell it to update)
Update our model matrix
Update our model matrix.
Whether to update the parent worldMatrix beforehand. Default to false.
Whether to update the children worldMatrix afterward. Default to true.
Check whether at least one of the matrix should be updated
Check at each render whether we should update our matrices, and update them if needed
Used as a base class to create a light.