Skip to content

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

ParameterType
config{ type: BodyType; atmosphereThickness?: number; }
config.typeBodyType
config.atmosphereThickness?number

Returns

number

Distribué sous la licence indiquée dans le dépôt.