Scene fog options

FogOptions

2023.12.27

yisky

interface FogOptions {
    color: ColorRepresentation;
    density?: number;
    far?: number;
    isFogExp2?: boolean;
    near?: number;
}

Properties

color: ColorRepresentation

Fog color

FogOptions

density?: number

Defines how fast the fog will grow dense. FogExp2 needs to set this option. Default is 0.00025

FogOptions

far?: number

The maximum distance at which fog stops being calculated and applied. FogExp2 doesn't need to set this option. Default is 100.

FogOptions

isFogExp2?: boolean

Whether to use FogExp2.Default is false.

FogOptions

near?: number

The minimum distance to start applying fog. FogExp2 doesn't need to set this option. Default is 1.

FogOptions