StencilFunc

The stencilFunc method of the WebGL API sets the front and back function and reference value for stencil testing. Stenciling enables and disables drawing on a per-pixel basis. It is typically used in multipass rendering to achieve special effects.

Core Enumeration

The stencilFunc method of the WebGL API sets the front and back function and reference value for stencil testing. Stenciling enables and disables drawing on a per-pixel basis. It is typically used in multipass rendering to achieve special effects.

Enumeration Members

NeverStencilFunc

NeverStencilFunc: 512


LessStencilFunc

LessStencilFunc: 513


EqualStencilFunc

EqualStencilFunc: 514


LessEqualStencilFunc

LessEqualStencilFunc: 515


GreaterStencilFunc

GreaterStencilFunc: 516


NotEqualStencilFunc

NotEqualStencilFunc: 517


GreaterEqualStencilFunc

GreaterEqualStencilFunc: 518


AlwaysStencilFunc

AlwaysStencilFunc: 519