ShadowMap

external class ShadowMap(source)
Use [Viewer.shadowMap] to get the scene's shadow map. Do not construct this directly.

The normalOffset bias pushes the shadows forward slightly, and may be disabled for applications that require ultra precise shadows.

See also

Properties

Link copied to clipboard

Determines the darkness of the shadows.

Link copied to clipboard

Determines if the shadow map will be shown.

Link copied to clipboard

Determines whether shadows start to fade out once the light gets closer to the horizon.

Link copied to clipboard

Determines the maximum distance of the shadow map. Only applicable for cascaded shadows. Larger distances may result in lower quality shadows.

Link copied to clipboard

Determines if a normal bias will be applied to shadows.

Link copied to clipboard

The width and height, in pixels, of each shadow map.

Link copied to clipboard

Determines if soft shadows are enabled. Uses pcf filtering which requires more texture reads and may hurt performance.