Skip to main content

StencilClearOption

Enum

Stencil buffer clear option.

  • 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

CustomTexture

CustomTexture: number

Stencil buffer will be cleared by texture from "maskTexture" property, if "maskTexture" is null then the stencil clear option will fallback to "CustomValue" mode.

Since

Lens Scripting Version 272


CustomValue

CustomValue: number

Stencil buffer will be cleared by "clearStencilValue" property value.

Since

Lens Scripting Version 272


None

None: number

Stencil buffer clear operation will be skipped.

Since

Lens Scripting Version 272