StencilOperation

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

static constant Cesium.StencilOperation.DECREMENT : Number

Decrements the stencil buffer value, clamping to zero.
Default Value: WebGLConstants.DECR

static constant Cesium.StencilOperation.DECREMENT_WRAP : Number

Decrements the stencil buffer value, wrapping to the maximum unsigned byte instead of going below zero.
Default Value: WebGLConstants.DECR_WRAP

static constant Cesium.StencilOperation.INCREMENT : Number

Increments the stencil buffer value, clamping to unsigned byte.
Default Value: WebGLConstants.INCR

static constant Cesium.StencilOperation.INCREMENT_WRAP : Number

Increments the stencil buffer value, wrapping to zero when exceeding the unsigned byte range.
Default Value: WebGLConstants.INCR_WRAP

static constant Cesium.StencilOperation.INVERT : Number

Bitwise inverts the existing stencil buffer value.
Default Value: WebGLConstants.INVERT

static constant Cesium.StencilOperation.KEEP : Number

Does not change the stencil buffer.
Default Value: WebGLConstants.KEEP

static constant Cesium.StencilOperation.REPLACE : Number

Replaces the stencil buffer value with the reference value.
Default Value: WebGLConstants.REPLACE

static constant Cesium.StencilOperation.ZERO : Number

Sets the stencil buffer value to zero.
Default Value: WebGLConstants.ZERO