raisin::RayraiWindow::DirectionalShadowCascadePlan
struct · #include <rayrai/RayraiWindow.hpp>
Result of planDirectionalShadowCascades().
Public attributes
enabled
cpp
bool enabledTrue when shadows are on, the main light is directional and more than one cascade is requested.
requestedCascadeCount
cpp
int requestedCascadeCountRenderQualitySettings::directionalShadowCascadeCount as given.
cascadeCount
cpp
int cascadeCountCascade count clamped to [1, 4].
lambda
cpp
float lambdaBlend between uniform (0) and logarithmic (1) splits.
nearPlane
cpp
float nearPlaneCamera near distance used (m).
farPlane
cpp
float farPlaneShadowed range end: min(camera far, maxDistance) (m).
maxDistance
cpp
float maxDistanceMaximum shadow distance (m); the main light's shadow far plane when not set.
shadowResolution
cpp
float shadowResolutionShadow map resolution in texels.
stableTexelSnap
cpp
bool stableTexelSnapCascade matrices are snapped to the texel grid to avoid shimmering.
splitOverridesEnabled
cpp
bool splitOverridesEnabledTrue when the user split overrides are valid and used.
splitOverrides
cpp
std::array<float, 4> splitOverridesSplit distances from the settings (unused entries zeroed).
cascades
cpp
std::vector<DirectionalShadowCascade> cascadesPer-cascade data, near to far.