DirectX SDK |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The ShadowVol sample shows how to create and use stencil buffers to implement shadow volumes. With shadow volumes, an object of any shape can cast a shadow onto another object of any shape.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\ShadowVol
Executable: (SDK root)\Samples\Multimedia\D3dim\Shadowvol.exe
This sample runs only on devices that support stencil buffers.
Press F1 to see available commands, or choose from the menu.
Shadow volumes are a fairly advanced technique.
To create shadow volumes