raisin::DirectionalShadowCascade
struct · #include <rayrai/RenderDiagnostics.hpp>
One cascade of a DirectionalShadowCascadePlan. Distances are view distances in metres.
Public attributes
index
cpp
int indexCascade index, 0 = nearest.
nearPlane
cpp
float nearPlaneStart of the cascade's view-distance slice.
farPlane
cpp
float farPlaneEnd of the cascade's view-distance slice.
splitDepth
cpp
float splitDepthSplit distance to the next cascade (equals farPlane).
texelWorldSize
cpp
float texelWorldSizeWorld-space size of one shadow-map texel, metres.
center
cpp
glm::vec3 centerWorld-space center of the cascade's projection.
lightSpaceMin
cpp
glm::vec3 lightSpaceMinLight-view AABB minimum of the slice frustum corners.
lightSpaceMax
cpp
glm::vec3 lightSpaceMaxLight-view AABB maximum of the slice frustum corners.
lightSpaceHalfExtents
cpp
glm::vec3 lightSpaceHalfExtentsHalf-size of that AABB.
lightSpaceMatrix
cpp
glm::mat4 lightSpaceMatrixWorld-to-shadow-clip matrix (projection * view, texel-snapped).