Microsoft DirectX 9.0 SDK Update (October 2004)

FogMode Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Defines constants that describe the fog mode.

Definition

Visual Basic .NET Public Enum FogMode
C# public enum FogMode
Managed C++ __value public enum FogMode
JScript .NET public enum FogMode

Members

Member Value Description
Linear 3 Fog effect intensifies in a linear manner between the start and end points, according to the following formula.

Linear fog equation

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

exponential square fog equation

Exp 1 Fog effect intensifies exponentially, according to the following formula.

Exponential fog equation

None 0 No fog effect.

Remarks

This enumeration is used by the RenderStateManager.FogTableMode and RenderStateManager.FogVertexMode properties.

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

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center