https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc
WebGLRenderingContext: stencilFunc() method - Web APIs | MDN
The WebGLRenderingContext.stencilFunc() method of the WebGL API sets the front and back function and reference value for stencil testing.
web apismethodmdn