?/TD> |
Microsoft DirectX 9.0 |
Stencil buffers are a depth-buffer technique that can be updated as geometry is rendered, and used again as a mask for drawing more geometry. Common effects include mirrors, shadows (an advanced technique), dissolves, and so on.
The Shadow Volume sample uses stencil buffers to implement real-time shadows. See Shadow Volume Sample.