euv-core 0.50.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Horizontal froxel tile count of the UE5 Clustered Deferred Lighting grid.
pub const LIGHT_CLUSTER_GRID_X: usize = 16;

/// Vertical froxel tile count of the UE5 Clustered Deferred Lighting grid.
pub const LIGHT_CLUSTER_GRID_Y: usize = 9;

/// Logarithmic depth slice count of the UE5 Clustered Deferred Lighting grid.
pub const LIGHT_CLUSTER_GRID_Z: usize = 16;

/// Maximum local point/spot lights binned per individual 3D frustum froxel.
pub const LIGHT_CLUSTER_MAX_PER_FROXEL: usize = 16;

/// Maximum total packed local lights supported per frame in `LightClusterGrid3D`.
pub const LIGHT_CLUSTER_MAX_LIGHTS: usize = 256;

/// Default Virtual Shadow Map cascade edge resolution in texels (`160x160` L2-cache-resident atlas).
pub const VSM_DEFAULT_CASCADE_RES: usize = 160;

/// Near VSM cascade world-space half-extent in meters (`64m x 64m` hero zone).
pub const VSM_CASCADE_NEAR_EXTENT_M: f32 = 36.0;

/// Far VSM cascade world-space half-extent in meters (`240m x 240m` city skyline).
pub const VSM_CASCADE_FAR_EXTENT_M: f32 = 120.0;

/// Shadowed ambient floor matching BVH ray-traced shadow luminance (`0.22`).
pub(crate) const VSM_SHADOW_FLOOR: f32 = 0.22;

/// Four-tap rotated Poisson disk offsets in texels for smooth PCF shadow penumbra.
pub(crate) const VSM_PCF_OFFSETS_4: [(f32, f32); 4] =
    [(-0.75, -0.35), (0.75, 0.35), (-0.35, 0.75), (0.35, -0.75)];

/// Minimum spot-light cone denominator avoiding division by zero when inner equals outer angle.
pub(crate) const SPOT_CONE_MIN_EPS: f32 = 1.0e-4;