Class description The stencil-state controls how incoming fragments interact with the stencil buffer. The front-mode and back-mode slots are both stencil-mode tuples that define the stencil buffer interaction for front- and back-facing triangle fragments, respectively. If both slots are f, stencil testing is disabled.