Mirror Engine
V7
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / FogParams

Class: FogParams

Fog parameters.

Properties

color

color: Color

The color of the fog (if enabled), specified in sRGB color space. Defaults to black (0, 0, 0).


density

density: number = 0

The density of the fog (if enabled). This property is only valid if the fog property is set to FOG_EXP or FOG_EXP2. Defaults to 0.


end

end: number = 1000

The distance from the viewpoint where linear fog reaches its maximum. This property is only valid if the fog property is set to FOG_LINEAR. Defaults to 1000.


start

start: number = 1

The distance from the viewpoint where linear fog begins. This property is only valid if the fog property is set to FOG_LINEAR. Defaults to 1.


type

type: string = FOG_NONE

The type of fog used by the scene. Can be:

Defaults to FOG_NONE.

Mirror Engine Logo