Skip to content

raisin::RayraiWindow::DirectionalShadowCascade ​

struct · #include <rayrai/RayraiWindow.hpp>

One cascade of DirectionalShadowCascadePlan. Depths are view distances in metres.

Public attributes ​

index ​

cpp
int index

Cascade index, 0 nearest.

nearPlane ​

cpp
float nearPlane

Cascade start distance.

farPlane ​

cpp
float farPlane

Cascade end distance.

splitDepth ​

cpp
float splitDepth

Split distance (equal to farPlane).

texelWorldSize ​

cpp
float texelWorldSize

World-space size of one shadow texel in metres.

center ​

cpp
glm::vec3 center

World-space center of the cascade's shadow projection.

lightSpaceMin ​

cpp
glm::vec3 lightSpaceMin

Minimum of the cascade frustum corners in light view space.

lightSpaceMax ​

cpp
glm::vec3 lightSpaceMax

Maximum of the cascade frustum corners in light view space.

lightSpaceHalfExtents ​

cpp
glm::vec3 lightSpaceHalfExtents

Half extents of that light-space box.

lightSpaceMatrix ​

cpp
glm::mat4 lightSpaceMatrix

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

RaiSim — physics for robotics and AI.