euv-core 0.52.1

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
use super::*;

/// Precomputed Image-Based Lighting (IBL) bundle combining L2 9-band SH diffuse irradiance, octahedral GGX specular mips, and Kulla-Conty BRDF LUT.
#[derive(Clone, Data, Debug, PartialEq)]
pub struct EnvironmentIbl3D {
    /// Nine L2 Spherical Harmonics diffuse irradiance RGB coefficients (pre-convolved with cosine lobe).
    #[get(type(copy))]
    pub(crate) sh_irradiance: [[f32; 3]; 9],
    /// Base `mip 0` edge resolution of the octahedral prefiltered specular environment map.
    #[get(type(copy))]
    pub(crate) specular_oct_size: u32,
    /// Ordered roughness mip chain of octahedral prefiltered HDR RGB radiance maps.
    pub(crate) specular_mips: Vec<Vec<[f32; 3]>>,
    /// Edge resolution of the square Split-Sum GGX BRDF integration LUT (`NdotV` x `roughness`).
    #[get(type(copy))]
    pub(crate) brdf_lut_size: u32,
    /// Flattened Split-Sum BRDF LUT storing `[scale, bias]` (`len == brdf_lut_size^2`).
    pub(crate) brdf_lut: Vec<[f32; 2]>,
    /// Global environment intensity multiplier.
    #[get(type(copy))]
    pub(crate) intensity: f32,
    /// Optional Y-axis environment rotation in radians.
    #[get(type(copy))]
    pub(crate) rotation_y_rad: f32,
}