Projected Spotlight and Dynamic Shadow
Textures on Radeon®
|
| |
|
Figure 1 - Projected spotlight
and dynamic shadow map
|
| |

|

|
Figure 2 - Dynamic shadow
map
|
Figure 3 - Spotlight map
|
|
| |
The sample RadeonSpotlightShadow uses SetRenderTarget
to generate a dynamic shadow map texture rendered from
the light point-of-view. It uses automatically generated
camera-space position coordinates to apply both the shadow
map and a spotlight texture to scene objects. Both textures
and a color factor ambient term can be applied in a single
pass using the Radeon® multitexture stages. Figure 1 shows
the applied projected textures. Figure 2 shows the dynamically
generated shadow texture, and Figure 3 shows the spotlight
texture.
|
| |
- RadeonSpotlightShadow Controls
-
- [F5] - Toggle display of dynamic shadow texture
on/off
- [SPACE] - Advance Frame-by-frame
- [ENTER] - stop advancing Frame-by-frame
- [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\Direct3D\Radeonxxxxxx
media.zip -> x:\atiddk\media
RadeonSpotlightShadow.zip
media.zip
Back
to Samples Page
|
| |
|
|