Parameters for a Atmosphere.

interface AtmosphereParams {
    affectSky?: boolean;
    color?: number[];
    enabled?: boolean;
    endDistance?: number;
    intensity?: number;
    maxOpacity?: 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].

enabled?: boolean

Whether this component is enabled.

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.

startDistance?: number

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

Default is 80.