Difference between revisions of "Stencil Test"

From OpenGL.org
Jump to: navigation, search
m (formatting.)
(Undo revision 7131 by Alfonse (talk) Bad link.)
Line 1: Line 1:
The '''Stencil Test''' is a per-sample operation performed after the [[Fragment Shader]]. The fragment's [[Stencil Mask]] is tested against the value in the current stencil buffer; if the test fails, the fragment is culled.
+
The '''Stencil Test''' is a per-sample operation performed after the [[Fragment Shader]]. The fragment's stencil value is tested against the value in the current stencil buffer; if the test fails, the fragment is culled.
  
 
{{stub}}
 
{{stub}}
  
 
[[Category:Sample Writing]]
 
[[Category:Sample Writing]]

Revision as of 13:16, 8 September 2012

The Stencil Test is a per-sample operation performed after the Fragment Shader. The fragment's stencil value is tested against the value in the current stencil buffer; if the test fails, the fragment is culled.