Determines the function used to compare stencil values for the stencil test.
Properties:
Name | Type | Description |
---|---|---|
NEVER |
Number | The stencil test never passes. |
LESS |
Number | The stencil test passes when the masked reference value is less than the masked stencil value. |
EQUAL |
Number | The stencil test passes when the masked reference value is equal to the masked stencil value. |
LESS_OR_EQUAL |
Number | The stencil test passes when the masked reference value is less than or equal to the masked stencil value. |
GREATER |
Number | The stencil test passes when the masked reference value is greater than the masked stencil value. |
NOT_EQUAL |
Number | The stencil test passes when the masked reference value is not equal to the masked stencil value. |
GREATER_OR_EQUAL |
Number | The stencil test passes when the masked reference value is greater than or equal to the masked stencil value. |
ALWAYS |
Number | The stencil test always passes. |
Members
The stencil test always passes.
-
Default Value:
WebGLConstants.ALWAYS
The stencil test passes when the masked reference value is equal to the masked stencil value.
-
Default Value:
WebGLConstants.EQUAL
The stencil test passes when the masked reference value is greater than the masked stencil value.
-
Default Value:
WebGLConstants.GREATER
The stencil test passes when the masked reference value is greater than or equal to the masked stencil value.
-
Default Value:
WebGLConstants.GEQUAL
The stencil test passes when the masked reference value is less than the masked stencil value.
-
Default Value:
WebGLConstants.LESS
The stencil test passes when the masked reference value is less than or equal to the masked stencil value.
-
Default Value:
WebGLConstants.LEQUAL
The stencil test never passes.
-
Default Value:
WebGLConstants.NEVER
The stencil test passes when the masked reference value is not equal to the masked stencil value.
-
Default Value:
WebGLConstants.NOTEQUAL