A GLenum specifying the test function. The default function is gl.ALWAYS.
NEVER
LESS
EQUAL
LEQUAL
GREATER
NOTEQUAL
GEQUAL
ALWAYS
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc
Generated using TypeDoc
A GLenum specifying the test function. The default function is gl.ALWAYS.
NEVER
总是不通过。LESS
如果 (ref & mask) < (stencil & mask) 则通过。EQUAL
如果 (ref & mask) = (stencil & mask) 则通过。LEQUAL
如果 (ref & mask) <= (stencil & mask) 则通过。GREATER
如果 (ref & mask) > (stencil & mask) 则通过。NOTEQUAL
如果 (ref & mask) != (stencil & mask) 则通过。GEQUAL
如果 (ref & mask) >= (stencil & mask) 则通过。ALWAYS
总是通过。https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc