Documentation / Node reference / code nodes

code/ShadowMapValue

Reads the depth a light's shadow map stores at a uv.

Lights

Outputs the depth stored in a directional or spot light's shadow map at a uv. Outside 0 to 1, it outputs 1.

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.
uv Vector2 Where to read, 0 to 1 on each axis.

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.