指定深度比较函数的枚举,该函数设置绘制像素的条件,默认 LESS,如果传入值小于深度缓冲区值则通过。
A GLenum specifying the depth comparison function, which sets the conditions under which the pixel will be drawn. The default value is gl.LESS.
NEVER
LESS
EQUAL
LEQUAL
GREATER
NOTEQUAL
GEQUAL
ALWAYS
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc
Generated using TypeDoc
指定深度比较函数的枚举,该函数设置绘制像素的条件,默认 LESS,如果传入值小于深度缓冲区值则通过。
A GLenum specifying the depth comparison function, which sets the conditions under which the pixel will be drawn. The default value is gl.LESS.
NEVER
总是不通过。LESS
如果传入值小于深度缓冲区值则通过。EQUAL
如果传入值等于深度缓冲区值则通过。LEQUAL
如果传入值小于或等于深度缓冲区值则通过。GREATER
如果传入值大于深度缓冲区值则通过。NOTEQUAL
如果传入值不等于深度缓冲区值则通过。GEQUAL
如果传入值大于或等于深度缓冲区值则通过。ALWAYS
总是通过。See
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc