Quick Tutorial onStencil Testing
An extra test for fine-grain pixel control
- Standard OpenGL and DirectX 6 feature
- Per-pixel test similar to depth buffering
- Tests fragment against pixel’s stencil value, rejects fragments that fail
- Also, can modify pixel’s stencil buffer value based on stencil/depth test results
- Hardware accelerates stencil testing
- Typically free when depth testing too