Skip to main content

CullMode

Enum

Used with Pass's cullMode property.

  • 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

Used with Pass's cullMode property. Determines which faces of a surface are culled (not rendered).

Index

Enumeration Members

Example

//@input Component.MeshVisual meshVisual

var mainPass = script.meshVisual.mainPass;
mainPass.cullMode = CullMode.Front;

Enumeration Members

Back

Back: number

Back facing surfaces are not rendered.

Since

Lens Scripting Version 272


Front

Front: number

Front facing surfaces are not rendered.

Since

Lens Scripting Version 272


FrontAndBack

FrontAndBack: number

Neither front facing nor back facing surfaces are rendered.

Since

Lens Scripting Version 272