|
|
|
|
| |
Gloss Mapping on the ATI Rage128
and Rage128 Pro with Direct3D
|
The R128DX7GlossMap sample program uses the ATI Rage128 and Rage128 Pro to carry out two-pass gloss mapping. This effect is similar to environment mapping except that a gloss map is applied to the environment map to vary its reflectivity. Figure 1 shows R128DX7GlossMap in action, comparing specular environment mapping to gloss mapping.
| |
|
|
Figure 1 - specular vs.. gloss mapping.
|
|
R128DX7GlossMap takes two passes to create the gloss mapping lighting effect. In the first pass, the specular environment map is rendered. During the second pass, the base texture modulated with the vertex diffuse color is added to the destination modulated with the base texture's alpha, which contains the gloss map. The gloss map attenuates the reflectivity of the specular map. This effect is represented by the following equation:
Result = Base*DiffuseLight + EnvironmentMap*GlossMap
In addition, there is also a second object drawn with a single pass to show plain specular environment mapping.
- R128DX7GlossMap Controls
-
- F1 - About
- F2 - Select Driver/Device/Mode
- [ALT]+[ENTER] - Toggle fullscreen/windowed
- [ENTER] - Toggle Go/Stop
- Space Bar - Single Step
- [ESC] - Quit
Downloads
DirectX 7 project file, source, executable, and support files
|
| |
 |
|
|
|