# StencilOperation

Scene/StencilOperation.js 8
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
Scene/StencilOperation.js 47

Decrements the stencil buffer value, clamping to zero.

Default Value: `WebGLConstants.DECR`

#### static constant Cesium.StencilOperation.DECREMENT_WRAP : Number
Scene/StencilOperation.js 71

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
Scene/StencilOperation.js 39

Increments the stencil buffer value, clamping to unsigned byte.

Default Value: `WebGLConstants.INCR`

#### static constant Cesium.StencilOperation.INCREMENT_WRAP : Number
Scene/StencilOperation.js 63

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
Scene/StencilOperation.js 55

Bitwise inverts the existing stencil buffer value.

Default Value: `WebGLConstants.INVERT`

#### static constant Cesium.StencilOperation.KEEP : Number
Scene/StencilOperation.js 23

Does not change the stencil buffer.

Default Value: `WebGLConstants.KEEP`

#### static constant Cesium.StencilOperation.REPLACE : Number
Scene/StencilOperation.js 31

Replaces the stencil buffer value with the reference value.

Default Value: `WebGLConstants.REPLACE`

#### static constant Cesium.StencilOperation.ZERO : Number
Scene/StencilOperation.js 15

Sets the stencil buffer value to zero.

Default Value: `WebGLConstants.ZERO`