Skip to main content

StencilOperation

Enum

Options for specifying the action to take when stencil and depth tests resolve.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v272

Index

Enumeration Members

DecrementClamp

DecrementClamp: number

Decrements the current stencil buffer value. Clamps to 0.

Since

Lens Scripting Version 272


DecrementWrap

DecrementWrap: number

Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of zero.

Since

Lens Scripting Version 272


IncrementClamp

IncrementClamp: number

Increments the current stencil buffer value. Clamps to the maximum representable unsigned value.

Since

Lens Scripting Version 272


IncrementWrap

IncrementWrap: number

Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value.

Since

Lens Scripting Version 272


Invert

Invert: number

Bitwise inverts the current stencil buffer value.

Since

Lens Scripting Version 272


Keep

Keep: number

Keep the current value.

Since

Lens Scripting Version 272


Replace

Replace: number

Sets the stencil buffer value to "referenceValue" property of StencilState.

Since

Lens Scripting Version 272


Zero

Zero: number

Set the stencil buffer value to 0.

Since

Lens Scripting Version 272