Using Fog Coordinates on the Radeon®
|
| |
The RadeonFogCoord sample uses
EXT_fog_coord to render a height-based fog effect.
A random rolling terrain is generated and the height of
the terrain as well as the z distance are used to compute
the fog coordinates.
|
| |
 |
| |
Figure 1 - Fog Coordinates simulating ground
based fog
|
| |
- RadeonFogCoord Controls
-
- C - Toggle fog coordinate use
- F - Cycle between GL_EXP, GL_EXP2, GL_LINEAR,
and no fog
- R - Regenerate new terrain
- W - Toggle Wireframe overlay
- [space] - Toggle moving terrain
- [ESC] - Quit
|
| |
Downloads
|
| |
Note: The source code and media should be unzipped
into the following recommended directory structure to
ensure you can easily compile and run the executable.
Radeonxxxxxx.zip -> x:\atiddk\OpenGL
media.zip -> x:\atiddk\media
RadeonFogCoord.zip
media.zip
Back
to Samples Page
|
| |