Documentation / Node reference / code nodes
code/CameraUV
Outputs where a position falls in a light's shadow map.
Geometry
Outputs where a world position falls in the shadow map of a directional or spot light: x and y on the map, z the depth. Unwired, it uses the position being shaded. It works in materials only.
Parameters
| Name | Type | What it does |
|---|---|---|
| lightType | UInt8 NONE · AMBIENT · AREA · DIRECTIONAL · HEMISPHERE · POINT · SPOT | Kind of light whose shadow map is read. |
| directionalLightIndex | UInt8 | Which directional light, counted from 0. |
| spotLightIndex | UInt8 | Which spot light, counted from 0. |
| worldPos | Vector3 | World position to project. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.