euv-core 0.56.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
/// Earth mean planetary radius in meters for physical atmospheric ray-sphere integration.
pub const EARTH_PLANET_RADIUS_M: f32 = 6_360_000.0;

/// Outer Earth atmosphere top boundary radius in meters (`60 km` altitude).
pub const EARTH_ATMOSPHERE_RADIUS_M: f32 = 6_420_000.0;

/// Sea-level Rayleigh density scale height in meters (`8 km`).
pub const EARTH_RAYLEIGH_SCALE_HEIGHT_M: f32 = 8_000.0;

/// Sea-level Mie aerosol density scale height in meters (`1.2 km`).
pub const EARTH_MIE_SCALE_HEIGHT_M: f32 = 1_200.0;

/// Stratospheric ozone layer peak altitude in meters (`25 km`).
pub const EARTH_OZONE_CENTER_ALT_M: f32 = 25_000.0;

/// Stratospheric ozone triangular layer half-width in meters (`15 km`).
pub const EARTH_OZONE_HALF_WIDTH_M: f32 = 15_000.0;

/// Sea-level Rayleigh scattering coefficients `(R, G, B)` in inverse meters (Hillaire/Bruneton).
pub(crate) const RAYLEIGH_SCATTER_COEFF: [f32; 3] = [5.802e-6, 13.558e-6, 33.1e-6];

/// Sea-level Mie scattering coefficient in inverse meters.
pub(crate) const MIE_SCATTER_COEFF: f32 = 3.996e-6;

/// Sea-level Mie extinction coefficient (scattering + absorption) in inverse meters.
pub(crate) const MIE_EXTINCTION_COEFF: f32 = 4.44e-6;

/// Stratospheric ozone Chappuis-band absorption coefficients `(R, G, B)` in inverse meters.
pub(crate) const OZONE_ABSORPTION_COEFF: [f32; 3] = [0.650e-6, 1.881e-6, 0.085e-6];

/// Default solar angular radius in radians for crisp physical solar disc rendering.
pub(crate) const DEFAULT_SUN_ANGULAR_RADIUS_RAD: f32 = 0.009_35;

/// Default top-of-atmosphere solar irradiance scale producing natural linear HDR sky values.
pub(crate) const DEFAULT_SOLAR_IRRADIANCE: f32 = 18.0;

/// Default solar angular delta in radians (`~3 degrees`) triggering automatic `EnvironmentIbl3D` rebuild.
pub(crate) const DEFAULT_IBL_REBUILD_ANGLE_RAD: f32 = 0.052_36;