Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

D3DFOG_ Values

Contains constants describing the fog mode. These values are used by the D3DRENDERSTATE_FOGTABLEMODE render state.

D3DFOG_NONE
No fog effect.
D3DFOG_EXP
The fog effect intensifies exponentially, according to the following formula:

D3DFOG_EXP2
The fog effect intensifies exponentially with the square of the distance, according to the following formula:

D3DFOG_LINEAR
The fog effect intensifies linearly between the start and end points, according to the following formula:

This is the only fog mode currently supported.

Note that fog can be considered a measure of visibility-the lower the fog value produced by one of the fog equations, the less visible an object is.

© 1996 Microsoft Corporation. All rights reserved.