$ ./guess_the_languageGame Dev
Game Dev · hard · #246

What is the stencil buffer typically used for?

  1. Storing per-pixel surface normals
  2. Holding depth for shadow maps
  3. Masking which pixels may be drawn
  4. Caching the previous frame image
Draws can write reference values to the stencil and later draws test against them, enabling portals, outlines, mirrors and masked UI.
Play Game Dev ▸