raisin::RayraiWindow::DirectionalShadowCascade
struct · #include <rayrai/RayraiWindow.hpp>
One cascade of DirectionalShadowCascadePlan. Depths are view distances in metres.
Public attributes
index
cpp
int indexCascade index, 0 nearest.
nearPlane
cpp
float nearPlaneCascade start distance.
farPlane
cpp
float farPlaneCascade end distance.
splitDepth
cpp
float splitDepthSplit distance (equal to farPlane).
texelWorldSize
cpp
float texelWorldSizeWorld-space size of one shadow texel in metres.
center
cpp
glm::vec3 centerWorld-space center of the cascade's shadow projection.
lightSpaceMin
cpp
glm::vec3 lightSpaceMinMinimum of the cascade frustum corners in light view space.
lightSpaceMax
cpp
glm::vec3 lightSpaceMaxMaximum of the cascade frustum corners in light view space.
lightSpaceHalfExtents
cpp
glm::vec3 lightSpaceHalfExtentsHalf extents of that light-space box.
lightSpaceMatrix
cpp
glm::mat4 lightSpaceMatrixWorld-to-shadow-clip matrix (projection * view), texel-snapped when enabled.