Click or drag to resize
DigitalRuneFogDensity1 Property
Gets or sets the density of the fog at Height1.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float Density1 { get; set; }

Property Value

Type: Single
The density of the fog at Height1.
Remarks

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.

See Also