Most visited

Recently visited

Material.CullMode

public static final enum Material.CullMode
extends Enum<Material.CullMode>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Material.CullMode>
     ↳ com.viro.core.Material.CullMode


CullMode determines whether we render front faces, back faces, or both. Each 3D surface in Viro has a front face and a back face. The front-face is that which has a counter-clockwise winding order.

Summary

Enum values

Material.CullMode  BACK

Cull (do not render) the back-facing faces. 

Material.CullMode  FRONT

Cull (do not render) the front-facing faces. 

Material.CullMode  NONE

Do not cull anything: render both front and back faces. 

Public methods

static Material.CullMode valueOf(String name)
static final CullMode[] values()

Enum values

BACK

Material.CullMode BACK

Cull (do not render) the back-facing faces. This is the default. For convex 3D models, back-faces typically represent the "interior", and therefore invisible, surfaces of the model.

FRONT

Material.CullMode FRONT

Cull (do not render) the front-facing faces.

NONE

Material.CullMode NONE

Do not cull anything: render both front and back faces. This is useful if you want the user to be able to see both sides of a concave model.

Public methods

valueOf

Material.CullMode valueOf (String name)

Parameters
name String

Returns
Material.CullMode

values

CullMode[] values ()

Returns
CullMode[]

Hooray!