RenderState.FogDensity Property

Bb196920.note(en-US,XNAGameStudio.10).gifNote
This property is available only when developing for Windows.
Gets or sets the fog density for pixel or vertex fog used in exponential fog modes. The default value is 1.0f.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public float FogDensity { get; set; }

Property Value

Value that represents the fog density to set or get.

Valid fog density values range from 0.0 through 1.0.

Windows XP SP2, Windows Vista

Show: