raisin::DirectionalShadowCascadePlan
struct · #include <rayrai/RenderDiagnostics.hpp>
Directional-light cascade layout for a camera (RayraiWindow::planDirectionalShadowCascades()), derived from the RenderQualitySettings::directionalShadowCascade* fields.
Public attributes
enabled
bool enabledShadows on, main light directional and cascadeCount > 1.
requestedCascadeCount
int requestedCascadeCountdirectionalShadowCascadeCount as set.
cascadeCount
int cascadeCountCascade count clamped to [1, 4].
lambda
float lambdaSplit blend: 0 = uniform, 1 = logarithmic.
nearPlane
float nearPlaneCamera near plane, metres.
farPlane
float farPlaneEnd of the shadowed range: min(camera far, maxDistance), metres.
maxDistance
float maxDistanceShadow distance: directionalShadowCascadeMaxDistance, or shadowFar when 0.
shadowResolution
float shadowResolutionShadow-map resolution per cascade, texels.
stableTexelSnap
bool stableTexelSnapLight-space origin is snapped to whole texels to avoid shimmering.
splitOverridesEnabled
bool splitOverridesEnabledThe split overrides were valid (strictly increasing within range) and used.
splitOverrides
std::array<float, 4> splitOverridesSplit distances used, metres; unused slots are 0.
cascades
std::vector<DirectionalShadowCascade> cascadesOne entry per cascade, near to far.