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
/// 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 const RAYLEIGH_SCATTER_COEFF: = ;
/// Sea-level Mie scattering coefficient in inverse meters.
pub const MIE_SCATTER_COEFF: f32 = 3.996e-6;
/// Sea-level Mie extinction coefficient (scattering + absorption) in inverse meters.
pub const MIE_EXTINCTION_COEFF: f32 = 4.44e-6;
/// Stratospheric ozone Chappuis-band absorption coefficients `(R, G, B)` in inverse meters.
pub const OZONE_ABSORPTION_COEFF: = ;
/// Default solar angular radius in radians for crisp physical solar disc rendering.
pub const DEFAULT_SUN_ANGULAR_RADIUS_RAD: f32 = 0.009_35;
/// Default top-of-atmosphere solar irradiance scale producing natural linear HDR sky values.
pub const DEFAULT_SOLAR_IRRADIANCE: f32 = 18.0;
/// Default solar angular delta in radians (`~3 degrees`) triggering automatic `EnvironmentIbl3D` rebuild.
pub const DEFAULT_IBL_REBUILD_ANGLE_RAD: f32 = 0.052_36;