Determines the action taken based on the result of the stencil test.
Properties:
Name | Type | Description |
---|---|---|
ZERO |
Number | Sets the stencil buffer value to zero. |
KEEP |
Number | Does not change the stencil buffer. |
REPLACE |
Number | Replaces the stencil buffer value with the reference value. |
INCREMENT |
Number | Increments the stencil buffer value, clamping to unsigned byte. |
DECREMENT |
Number | Decrements the stencil buffer value, clamping to zero. |
INVERT |
Number | Bitwise inverts the existing stencil buffer value. |
INCREMENT_WRAP |
Number | Increments the stencil buffer value, wrapping to zero when exceeding the unsigned byte range. |
DECREMENT_WRAP |
Number | Decrements the stencil buffer value, wrapping to the maximum unsigned byte instead of going below zero. |
Members
Decrements the stencil buffer value, clamping to zero.
-
Default Value:
WebGLConstants.DECR
Decrements the stencil buffer value, wrapping to the maximum unsigned byte instead of going below zero.
-
Default Value:
WebGLConstants.DECR_WRAP
Increments the stencil buffer value, clamping to unsigned byte.
-
Default Value:
WebGLConstants.INCR
Increments the stencil buffer value, wrapping to zero when exceeding the unsigned byte range.
-
Default Value:
WebGLConstants.INCR_WRAP
Bitwise inverts the existing stencil buffer value.
-
Default Value:
WebGLConstants.INVERT
Does not change the stencil buffer.
-
Default Value:
WebGLConstants.KEEP
Replaces the stencil buffer value with the reference value.
-
Default Value:
WebGLConstants.REPLACE
Sets the stencil buffer value to zero.
-
Default Value:
WebGLConstants.ZERO