Difference between revisions of "Stencil Test"

From OpenGL.org
Jump to: navigation, search
(stub for stencil test.)
 
m (formatting.)
Line 1: Line 1:
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.
+
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.
  
 
{{stub}}
 
{{stub}}
  
 
[[Category:Sample Writing]]
 
[[Category:Sample Writing]]

Revision as of 13:15, 8 September 2012

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.