|
|
|
|
| |
Radeon® Fog
|
|
| |
Fog blends an API-level fog color with the current color of a pixel according to a fog blend factor as follows:
|
src * fogFactor + fogColor * (1 - FogFactor)
|
On the Radeon®, fogFactor can be interpolated between vertices (vertex fog).
Vertex Fog
In Direct3D®, an application-computed fog factor can be
specified in the alpha component of the specular color
of a vertex. This fog factor is interpolated between vertices
and the interpolated factor is used when applying fog
to the pixels of a primitive.
Range fog.
Using vertex fog can introduce graphics artifacts that manifest themselves in objects popping in and out of fog, especially noticable when changing orientation relative to stationary scene. Range-based vertex fog provides more accurate alternative to plane-based vertex fog. To determine the availability of the range fog in Direct3D® check D3DPRASTERCAPS_FOGRANGE capability flag in the dwRasterCaps. To enable range-based fog set the D3DRENDERSTATE_RANGEFOGENABLE render state to TRUE.
|
|
| |
|
| |
 |
|
|
|