RenderState.FogDensity Property
Note
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)
Syntax
public float FogDensity { get; set; }
Property Value
Value that represents the fog density to set or get.
Remarks
Valid fog density values range from 0.0 through 1.0.
See Also
Reference
RenderState Class
RenderState Members
FogStart
FogEnd
FogEnable
FogColor
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista