TSL function for getting a shadow matrix uniform node for the given light.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Returns
UniformNode<mat4>TSL function for getting projected uv coordinates for the given light. Relevant when using maps with spot lights.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
| position? | Node<vec3> | positionWorld |
Returns
anyTSL function for getting the position in world space for the given light.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Returns
UniformNode<vec3>TSL function for getting the light target position in world space for the given light.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Returns
UniformNode<vec3>TSL function for getting the position in view space for the given light.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Returns
UniformNode<vec3>TSL function for getting the light target direction for the given light.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Returns
Node<vec3>