Skip to content

raisin::DirectionalShadowCascade ​

struct · #include <rayrai/RenderDiagnostics.hpp>

One cascade of a DirectionalShadowCascadePlan. Distances are view distances in metres.

Public attributes ​

index ​

cpp
int index

Cascade index, 0 = nearest.

nearPlane ​

cpp
float nearPlane

Start of the cascade's view-distance slice.

farPlane ​

cpp
float farPlane

End of the cascade's view-distance slice.

splitDepth ​

cpp
float splitDepth

Split distance to the next cascade (equals farPlane).

texelWorldSize ​

cpp
float texelWorldSize

World-space size of one shadow-map texel, metres.

center ​

cpp
glm::vec3 center

World-space center of the cascade's projection.

lightSpaceMin ​

cpp
glm::vec3 lightSpaceMin

Light-view AABB minimum of the slice frustum corners.

lightSpaceMax ​

cpp
glm::vec3 lightSpaceMax

Light-view AABB maximum of the slice frustum corners.

lightSpaceHalfExtents ​

cpp
glm::vec3 lightSpaceHalfExtents

Half-size of that AABB.

lightSpaceMatrix ​

cpp
glm::mat4 lightSpaceMatrix

World-to-shadow-clip matrix (projection * view, texel-snapped).

RaiSim — physics for robotics and AI.