Skip to content

Z.CullFaces

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

enum CullFaces { "inherit", "back", "front", "both", "none" }

3D rendering hardware can optionally skip drawing (cull) each face in a 3D object depending on the order in which the vertices of that face are specified.

The Z.CullFaces enumeration provides a set of values that are used throughout the platform to indicate culling behavior.

MemberDescription
inheritThe culling type will be determined by the object’s parents.
backFaces pointing away from the camera will not be drawn.
frontFaces pointing towards the camera will not be drawn.
bothAll of the faces in the object will be culled. No faces will be drawn.
noneNone of the faces will be culled. All of the faces will be drawn.