Determines the function used to compare two depths for the depth test.
Properties:
Name | Type | Description |
---|---|---|
NEVER |
Number | The depth test never passes. |
LESS |
Number | The depth test passes if the incoming depth is less than the stored depth. |
EQUAL |
Number | The depth test passes if the incoming depth is equal to the stored depth. |
LESS_OR_EQUAL |
Number | The depth test passes if the incoming depth is less than or equal to the stored depth. |
GREATER |
Number | The depth test passes if the incoming depth is greater than the stored depth. |
NOT_EQUAL |
Number | The depth test passes if the incoming depth is not equal to the stored depth. |
GREATER_OR_EQUAL |
Number | The depth test passes if the incoming depth is greater than or equal to the stored depth. |
ALWAYS |
Number | The depth test always passes. |
Members
The depth test always passes.
-
Default Value:
WebGLConstants.ALWAYS
The depth test passes if the incoming depth is equal to the stored depth.
-
Default Value:
WebGLConstants.EQUAL
The depth test passes if the incoming depth is greater than the stored depth.
-
Default Value:
WebGLConstants.GREATER
The depth test passes if the incoming depth is greater than or equal to the stored depth.
-
Default Value:
WebGLConstants.GEQUAL
The depth test passes if the incoming depth is less than the stored depth.
-
Default Value:
WebGLConstants.LESS
The depth test passes if the incoming depth is less than or equal to the stored depth.
-
Default Value:
WebGLConstants.LEQUAL
The depth test never passes.
-
Default Value:
WebGLConstants.NEVER
The depth test passes if the incoming depth is not equal to the stored depth.
-
Default Value:
WebGLConstants.NOTEQUAL