|
|
|
|
| |
Specular & Gloss Mapping on the ATI
Rage128 with OpenGL
|
|
|
-
The Rage128Specular sample program uses single-pass multitexturing and multipass rendering to implement the following effects on a simple object:
- Single-pass specular mapping using multitexturing
- Multi-pass specular mapping with ONE:ONE blending
- Multi-pass gloss mapping with ONE:SRC_ALPHA blending (shown below)
- Diffuse (vertex) lighting only
| |
|
The application makes use of ARB_multitextureand EXT_texture_env_addwhen doing single-pass specular mapping.
If these extensions are supported, you'll note that single-pass specular mapping is significantly faster than multi-pass specular mapping.
Also note that multi-pass specular mapping and multi-pass gloss mapping are the same cost.
- Rage128Specular Controls
- Left mouse drag - Rotate object
- [SPACE] - Cycle through rendering techniques
- [ESC] - Quit
Building and Running Rage128Specular
In order to build Rage128Specular, you must have a gl.h file that contains the necessary defines for both the ARB_Multitexture extension and the Texture_Env_Add extension. Likewise to run the app you must have OpenGL drivers that at least implement ARB_Multitexture. Please see the page Building OpenGLSamples for more information on this and other general information.
Win32 Downloads
Project file, source, executable, and support files(205 kb) Shared source and include files(31 kb)
|
| |
 |
|
|
|