3D Lingo Dictionary > C-D > decayMode |  |

decayMode

Syntax

    member(whichCastmember).camera(whichCamera).fog.decayMode
    sprite(whichSprite).camera{(index)}.fog.decayMode

Description

3D property; indicates the manner in which fog density builds from minimum to maximum density when the camera's `fog.enabled` property is set to `TRUE`.

The following are the possible values for this property:

| `#linear`: the fog density is linearly interpolated between `fog.near` and `fog.far`.
| `#exponential`: `fog.far` is the saturation point; `fog.near` is ignored.
| `#exponential2`: `fog.near` is the saturation point; `fog.far` is ignored.

The default setting for this property is `#exponential`.

Example

This statement sets the `decayMode` property of the fog of the camera Defaultview to `#linear`. If the fog's `enabled` property is set to `TRUE`, the density of the fog will steadily increase between the distances set by the fog's `near` and `far` properties. If the `near` property is set to 100 and the `far` property is set to 1000, the fog will begin 100 world units in front of the camera and gradually increase in density to a distance of 1000 world units in front of the camera.

    member("3d world").camera("Defaultview").fog.decayMode = #linear

See also

`fog`, `near (fog)`, `far (fog)`, `enabled (fog)`