Stencil test

A stencil test is used to compare the value set here with the value in the stencil buffer being written to.

Stencil Test Settings and Features

This page describes stencil test settings and features.

For details on the stencil test, click here.

stencil_test
A Test enabled Enable/disable the stencil test using the checkbox.
B Stencil test function Sets the method of comparison to use when executing a stencil test.
C Reference value for stencil test Sets the reference value used for comparison with the stencil buffer.
D Test mask Use the value set for Test mask to specify in detail the range of stencil values to be tested.
The default value is 255, which specifies the entire range.
E When the stencil test fails Sets the process to use when the stencil test fails. Subsequent depth test processing is not carried out.
F When the depth test fails Sets the process used if the depth test fails if use has been determined by the stencil test.
G When the depth test succeeds Sets the process to use if use has been determined by both the stencil test and depth test.

CONFIDENTIAL