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: 512
LessStencilFunc: 513
EqualStencilFunc: 514
LessEqualStencilFunc: 515
GreaterStencilFunc: 516
NotEqualStencilFunc: 517
GreaterEqualStencilFunc: 518
AlwaysStencilFunc: 519