Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FogDensity Property
Collapse the table of content
Expand the table of content

RenderState.FogDensity Property

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

Community Additions

© 2015 Microsoft