stencilFuncSeparate method

void stencilFuncSeparate(
  1. GLenum face,
  2. GLenum func,
  3. GLint ref,
  4. GLuint mask,
)

The WebGLRenderingContext.stencilFuncSeparate() method of the WebGL API sets the front and/or back function and reference value for stencil testing.

Stencilling enables and disables drawing on a per-pixel basis. It is typically used in multipass rendering to achieve special effects.

Implementation

external void stencilFuncSeparate(
  GLenum face,
  GLenum func,
  GLint ref,
  GLuint mask,
);