threejs-worldgen
    Preparing search index...

    Function resolveAtmosphere

    • The atmosphere as used for a planet of planetRadius: with scaleWithRadius, every altitude (shell height, scale heights, ozone, layers) is scaled by R / Earth's radius and the scattering coefficients by the inverse, so optical depths — and so the colours — stay Earth-like.

      Parameters

      Returns AtmosphereOptions