FogMode Enumeration (Microsoft.DirectX.Direct3D)

Defines constants that describe the fog mode.

Definition

Visual Basic Public Enum FogMode
C# public enum FogMode
C++ public enum class FogMode
JScript 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.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492