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
/// Standard gravitational acceleration in meters per second squared for ocean dispersion and buoyancy.
pub const OCEAN_GRAVITY_MPS2: f32 = 9.806_65;

/// Nominal density of surface seawater at 15 degrees Celsius in `kg/m^3`.
pub const OCEAN_SEAWATER_DENSITY_KGM3: f32 = 1025.0;

/// Physical dielectric Schlick Fresnel reflectance at normal incidence for air-water (`F0 = 0.02`).
pub const OCEAN_FRESNEL_F0: f32 = 0.02;

/// Default Beer-Lambert spectral absorption coefficients `[R, G, B]` in `m^-1` for clear coastal seawater.
pub const OCEAN_DEFAULT_ABSORPTION_RGB: [f32; 3] = [0.42, 0.14, 0.06];

/// Default number of directional JONSWAP Gerstner wave cascades (macro swell, mid gravity, capillary chop).
pub const OCEAN_DEFAULT_CASCADES: u8 = 3;

/// Default deterministic seed for reproducible directional Gerstner + JONSWAP wave synthesis.
pub const OCEAN_DEFAULT_SEED: u64 = 0x5EED_0CEA_4056_0001;

/// Maximum horizontal total Gerstner steepness sum preventing wave crest self-intersection loops.
pub(crate) const OCEAN_MAX_TOTAL_STEEPNESS: f32 = 0.82;

/// JONSWAP peak enhancement factor `gamma` for developing sea states.
pub(crate) const OCEAN_JONSWAP_GAMMA: f32 = 3.3;

/// JONSWAP left spectral width `sigma_a` for `omega <= omega_p`.
pub(crate) const OCEAN_JONSWAP_SIGMA_A: f32 = 0.07;

/// JONSWAP right spectral width `sigma_b` for `omega > omega_p`.
pub(crate) const OCEAN_JONSWAP_SIGMA_B: f32 = 0.09;

/// Maximum number of waves synthesized per directional cascade.
pub(crate) const OCEAN_WAVES_PER_CASCADE: usize = 6;

/// Maximum per-step time interval accepted by `BuoyantHull3D` integration.
pub(crate) const BUOYANT_HULL_MAX_DT_SECS: f32 = 0.05;

/// Minimum water-surface inversion iterations used to map world `(x, z)` back to Gerstner parameter space.
pub(crate) const OCEAN_INVERSE_ITERS: usize = 3;

/// Default asset mesh name for generated `OceanSurface3D` patches.
pub(crate) const OCEAN_DEFAULT_PATCH_NAME: &str = "ocean_surface_patch";