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

FogMode Enumeration

Bb196925.note(en-US,XNAGameStudio.30).gifNote
This enumeration is available only when developing for Windows.
Defines constants that describe the fog mode.

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

public enum FogMode

 Member nameDescription
Exponent

Fog effect intensifies exponentially, according to the following formula.

Bb196925.fogexp(en-US,XNAGameStudio.30).gif
ExponentSquared

Fog effect intensifies exponentially with the square of the distance, according to the following formula.

Bb196925.fogexp2(en-US,XNAGameStudio.30).gif
Linear

Fog effect intensifies in a linear manner between the start and end points, according to the following formula.

Bb196925.foglinear(en-US,XNAGameStudio.30).gif
NoneNo fog effect.

Fog can be considered a measure of visibility. The lower the fog value produced by a fog equation, the less visible an object is.

Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2015 Microsoft