Documentation / Node reference / code nodes
code/ShadowDepth
Outputs the depth part of shadow map coordinates.
Lights
Outputs the depth z of shadow map coordinates: how far the point is from the light. Compare it with the depth the map stores to tell if the point is in shadow.
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. |
| coordinates | Vector3 | Shadow map coordinates. z is the depth. |
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.