1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/// 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: = ;
/// 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 const OCEAN_MAX_TOTAL_STEEPNESS: f32 = 0.82;
/// JONSWAP peak enhancement factor `gamma` for developing sea states.
pub const OCEAN_JONSWAP_GAMMA: f32 = 3.3;
/// JONSWAP left spectral width `sigma_a` for `omega <= omega_p`.
pub const OCEAN_JONSWAP_SIGMA_A: f32 = 0.07;
/// JONSWAP right spectral width `sigma_b` for `omega > omega_p`.
pub const OCEAN_JONSWAP_SIGMA_B: f32 = 0.09;
/// Maximum number of waves synthesized per directional cascade.
pub const OCEAN_WAVES_PER_CASCADE: usize = 6;
/// Maximum per-step time interval accepted by `BuoyantHull3D` integration.
pub 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 const OCEAN_INVERSE_ITERS: usize = 3;
/// Default asset mesh name for generated `OceanSurface3D` patches.
pub const OCEAN_DEFAULT_PATCH_NAME: &str = "ocean_surface_patch";