Click or drag to resize
DigitalRuneCascadedShadowDistances Property
Gets or sets the cascade split distances.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public Vector4F Distances { get; set; }

Property Value

Type: Vector4F
The cascade split distances in world space. The default value is (4, 12, 20, 80).
Remarks

This vector contains the distances where the camera frustum is split in world space in following order: (split 0-1, split 1-2, split 2-3, max shadow distance). If the NumberOfCascades is less than 4, then the last components are ignored.

For example, if Distances is (4, 12, 20, 80), then the first cascade covers an area 4 units in front of the camera. The second cascade covers an area up to 12 units. The third cascade covers the area up to 20 units. The last cascade always covers the remaining area. The max. shadow distance is 80. The renderer does not need to render shadows beyond 80 units in front of the camera.

See Also