FogDensity1 Property |
Namespace: DigitalRune.Graphics
The fog density can be specified using either Density and HeightFalloff or Density0 and Density1. Density defines the fog density at height 0 and the HeightFalloffdetermines whether the fog density increases or decrease with height. Alternatively, the fog density can be set at two reference heights using Density0 and Density1. The properties are coupled: If Density or HeightFalloff are changed, Density0 and Density1 are updated automatically and vice versa. In practice, you will use either Density and HeightFalloff, or Density0 and Density1 to control the fog settings.
To disable the fog, simply set Density to 0. To create a height-independent fog, set HeightFalloff to 0.