Parameters for a Atmosphere.

interface AtmosphereParams {
    affectSky?: boolean;
    color?: number[];
    endDistance?: number;
    intensity?: number;
    maxOpacity?: number;
    renderModes?: number[];
    startDistance?: number;
}

Properties

affectSky?: boolean

Whether to haze sky/background pixels. Default false.

color?: number[]

RGB haze color mixed into distant scene geometry.

Default is [0.72, 0.82, 0.92].

endDistance?: number

View-space distance, in world units, at which attenuation reaches full configured strength.

Default is 500.

intensity?: number

Overall atmospheric attenuation strength.

Default is 0.35.

maxOpacity?: number

Maximum haze opacity after distance and intensity are applied.

Default is 0.55.

renderModes?: number[]

Which rendering modes in which to apply atmospheric attenuation.

Default value is [RealisticRender] when this effect is explicitly configured. Omitted EffectsParams.atmosphere leaves the effect inactive.

startDistance?: number

View-space distance, in world units, at which attenuation begins.

Default is 80.