Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines constants that describe the fog mode.
Syntax
typedef enum D3DFOGMODE {
D3DFOG_NONE = 0,
D3DFOG_EXP = 1,
D3DFOG_EXP2 = 2,
D3DFOG_LINEAR = 3,
D3DFOG_FORCE_DWORD = 0x7fffffff
} D3DFOGMODE, *LPD3DFOGMODE;
Constants
-
D3DFOG_NONE
-
No fog effect.
-
D3DFOG_EXP
-
Fog effect intensifies exponentially, according to the following formula.
-
D3DFOG_EXP2
-
Fog effect intensifies exponentially with the square of the distance, according to the following formula.
-
D3DFOG_LINEAR
-
Fog effect intensifies linearly between the start and end points, according to the following formula.
This is the only fog mode currently supported.
-
D3DFOG_FORCE_DWORD
-
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.
Remarks
The values in this enumerated type are used by the D3DRS_FOGTABLEMODE and D3DRS_FOGVERTEXMODE render states.
Fog can be considered a measure of visibility: the lower the fog value produced by a fog equation, the less visible an object is.
Requirements
Requirement | Value |
---|---|
Header |
|
See also