StencilFunction - Cesium Documentation

# StencilFunction

Determines the function used to compare stencil values for the stencil test.

Source: Scene/StencilFunction.js, line 14

### Members

#### staticconstantStencilFunction.ALWAYS :Number

  0x0207. The stencil test always passes.
  Source: Scene/StencilFunction.js, line 77

#### staticconstantStencilFunction.EQUAL :Number

  0x0202. The stencil test passes when the masked reference value is equal to the masked stencil value.
  Source: Scene/StencilFunction.js, line 37

#### staticconstantStencilFunction.GREATER :Number

  0x0204. The stencil test passes when the masked reference value is greater than the masked stencil value.
  Source: Scene/StencilFunction.js, line 53

#### staticconstantStencilFunction.GREATER_OR_EQUAL :Number

  0x0206. The stencil test passes when the masked reference value is greater than or equal to the masked stencil value.
  Source: Scene/StencilFunction.js, line 69

#### staticconstantStencilFunction.LESS :Number

  0x0201. The stencil test passes when the masked reference value is less than the masked stencil value.
  Source: Scene/StencilFunction.js, line 29

#### staticconstantStencilFunction.LESS_OR_EQUAL :Number

  0x0203. The stencil test passes when the masked reference value is less than or equal to the masked stencil value.
  Source: Scene/StencilFunction.js, line 45

#### staticconstantStencilFunction.NEVER :Number

  0x0200. The stencil test never passes.
  Source: Scene/StencilFunction.js, line 21

#### staticconstantStencilFunction.NOT_EQUAL :Number

  0x0205. The stencil test passes when the masked reference value is not equal to the masked stencil value.
  Source: Scene/StencilFunction.js, line 61