lightShadowMatrix

Last modified: Oct 8, 2026

TSL function for getting a shadow matrix uniform node for the given light.

ParameterTypeDefault Value
lightLight—

Returns

UniformNode<mat4>

lightProjectionUV

TSL function for getting projected uv coordinates for the given light. Relevant when using maps with spot lights.

ParameterTypeDefault Value
lightLight—
position?Node<vec3>positionWorld

Returns

any

lightPosition

TSL function for getting the position in world space for the given light.

ParameterTypeDefault Value
lightLight—

Returns

UniformNode<vec3>

lightTargetPosition

TSL function for getting the light target position in world space for the given light.

ParameterTypeDefault Value
lightLight—

Returns

UniformNode<vec3>

lightViewPosition

TSL function for getting the position in view space for the given light.

ParameterTypeDefault Value
lightLight—

Returns

any

lightTargetDirection

TSL function for getting the light target direction for the given light.

ParameterTypeDefault Value
lightLight—

Returns

Node<vec3>