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
