A medium type in the atmosphere that only absorbs light with two layers. In Earth's atmosphere this is used to model ozone.

Computed as:

 extinction * (linearTerm * h + constantTerm),

where h is the altitude and linearTerm and constantTerm are the first or second layer's linear and constant terms. If h is lower than AbsorptionLayer0.height, Absorption.layer0 is used, otherwise Absorption.layer1 is used.

interface Absorption {
    extinction: [number, number, number];
    layer0: AbsorptionLayer0;
    layer1: AbsorptionLayer1;
}

Properties

extinction: [number, number, number]

The extinction coefficients of the absorption component in km^-1.

The lower layer of the absorption component.

The upper layer of the absorption component.