euv-core 0.53.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
/// Default octahedral specular environment map edge resolution in texels.
pub const IBL_DEFAULT_SPECULAR_SIZE: u32 = 64;

/// Default Split-Sum GGX BRDF integration LUT edge resolution in texels.
pub const IBL_DEFAULT_BRDF_LUT_SIZE: u32 = 64;

/// Default number of roughness mip levels generated for octahedral specular IBL.
pub const IBL_SPECULAR_MIP_COUNT: usize = 5;

/// AgX log2 exposure floor (`-12.47393`).
pub(crate) const AGX_MIN_EV: f32 = -12.473_93;

/// AgX log2 exposure ceiling (`4.026069`).
pub(crate) const AGX_MAX_EV: f32 = 4.026_069;

/// AgX linear sRGB inset 3x3 matrix rows (Troy Sobotka Blender 4.0+/5.x AgX).
pub(crate) const AGX_INSET_MATRIX: [[f32; 3]; 3] = [
    [0.842_479_05, 0.078_433_6, 0.079_223_745],
    [0.042_328_242, 0.878_468_63, 0.079_166_13],
    [0.042_375_654, 0.078_433_6, 0.879_143],
];

/// AgX outset 3x3 matrix rows mapping AgX working space back to linear sRGB.
pub(crate) const AGX_OUTSET_MATRIX: [[f32; 3]; 3] = [
    [1.196_879_4, -0.098_020_88, -0.099_029_75],
    [-0.052_896_85, 1.151_903_1, -0.098_961_18],
    [-0.052_971_635, -0.098_043_45, 1.151_073_7],
];

/// L2 Spherical Harmonics basis scaling constants `(Y00, Y1m, Y2_2/Y2_1/Y21, Y20, Y22)`.
pub(crate) const SH_C0: f32 = 0.282_094_8;
/// L1 Spherical Harmonics basis constant `sqrt(3 / (4 * pi))`.
pub(crate) const SH_C1: f32 = 0.488_602_52;
/// L2 off-diagonal Spherical Harmonics basis constant `0.5 * sqrt(15 / pi)`.
pub(crate) const SH_C2_0: f32 = 1.092_548_5;
/// L2 zonal Spherical Harmonics basis constant `0.25 * sqrt(5 / pi)`.
pub(crate) const SH_C2_1: f32 = 0.315_391_57;
/// L2 `x^2 - y^2` Spherical Harmonics basis constant `0.25 * sqrt(15 / pi)`.
pub(crate) const SH_C2_2: f32 = 0.546_274_24;