Bagikan melalui


FogMode Enumeration

Note

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)

Syntax

public enum FogMode

Members

  Member name Description
Exponent

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

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

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

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

Fog effect intensifies exponentially, according to the following formula.

Bb196925.foglinear(en-US,XNAGameStudio.10).gif
None No fog effect.

Remarks

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

See Also

Reference

RenderState.FogTableMode Property
RenderState.FogVertexMode Property
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista