Skip to content

raisin::RayraiWindow::DirectionalShadowCascadePlan ​

struct · #include <rayrai/RayraiWindow.hpp>

Result of planDirectionalShadowCascades().

Public attributes ​

enabled ​

cpp
bool enabled

True when shadows are on, the main light is directional and more than one cascade is requested.

requestedCascadeCount ​

cpp
int requestedCascadeCount

RenderQualitySettings::directionalShadowCascadeCount as given.

cascadeCount ​

cpp
int cascadeCount

Cascade count clamped to [1, 4].

lambda ​

cpp
float lambda

Blend between uniform (0) and logarithmic (1) splits.

nearPlane ​

cpp
float nearPlane

Camera near distance used (m).

farPlane ​

cpp
float farPlane

Shadowed range end: min(camera far, maxDistance) (m).

maxDistance ​

cpp
float maxDistance

Maximum shadow distance (m); the main light's shadow far plane when not set.

shadowResolution ​

cpp
float shadowResolution

Shadow map resolution in texels.

stableTexelSnap ​

cpp
bool stableTexelSnap

Cascade matrices are snapped to the texel grid to avoid shimmering.

splitOverridesEnabled ​

cpp
bool splitOverridesEnabled

True when the user split overrides are valid and used.

splitOverrides ​

cpp
std::array<float, 4> splitOverrides

Split distances from the settings (unused entries zeroed).

cascades ​

cpp
std::vector<DirectionalShadowCascade> cascades

Per-cascade data, near to far.

RaiSim — physics for robotics and AI.