StencilRef
Keywords: StencilRef, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> StencilRef - 3D API stencil ref

> ## Usage

> StencilRef = int(ref)

> ## Valid Enumerants

> ref: integer value

> ## Description

> Specify the reference value for the stencil test. See the ref parameter description on the OpenGL glStencilFunc manual page for details. See the D3DRS_STENCILREF render state description for DirectX 9.

> The standard reset callback sets the StencilRef state to int(0).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> ClearStencil, StencilEnable, StencilFail, StencilFunc, StencilFuncSeparate, StencilMask, StencilMaskSeparate, StencilOp, StencilOpSeparate, StencilPass, StencilTestEnable, StencilTestTwoSideEnable, StencilWriteMask, StencilZFail, TwoSidedStencilMode