Function: resolveAtmosphereThickness()
ts
function resolveAtmosphereThickness(config): number;Resolves the effective atmosphere thickness for a body — clamps the raw config field to [0, 1]. Use this helper everywhere config.atmosphereThickness is read so the same value flows into both the sim layer (terrain band count) and the render layer (radial partition).
config.type is accepted on the input shape for forward-compat (a future type might need its own clamp) but is not currently read.
Parameters
| Parameter | Type |
|---|---|
config | { type: BodyType; atmosphereThickness?: number; } |
config.type | BodyType |
config.atmosphereThickness? | number |
Returns
number