This section presents a discussion of the purpose and use stencil buffers. It is divided into the following topics.