Atmosphere parameters.

The atmosphere is modelled as a sphere around a spherical planet.

interface Atmosphere {
    absorption: Absorption;
    bottomRadius: number;
    center: [number, number, number];
    groundAlbedo: [number, number, number];
    height: number;
    mie: Mie;
    multipleScatteringFactor: number;
    rayleigh: Rayleigh;
}

Properties

absorption: Absorption

Absorption / Ozone component.

bottomRadius: number

Radius of the planet (center to ground) in kilometers.

center: [number, number, number]

Center of the atmosphere.

groundAlbedo: [number, number, number]

The average albedo of the ground used to model light bounced off the planet's surface.

height: number

Height of atmosphere (distance from bottomRadius to atmosphere top) in kilometers.

Clamped to max(height, 0)

mie: Mie

Mie scattering component.

multipleScatteringFactor: number

A weight for multiple scattering in the atmosphere.

rayleigh: Rayleigh

Rayleigh scattering component.