Questions tagged [stencil-buffer]

11 questions
37
votes
3 answers

What is a stencil buffer?

Wikipedia states that a stencil buffer is some arbitrary buffer a shader can use. However, it hints that it's used for clipping, or otherwise "tightly binding" the depth and pixel buffers, slightly contradicting itself. What does the stencil buffer…