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