Most visited

Recently visited

Material.ColorWriteMask

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

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


ColorWriteMask indicates what colors should be written to the screen when rendering a Material. This is commonly used for two purposes: one, to filter out a base color (e.g. red) from the Material, or two, to turn off all color writing for a Material, so that the Material is only written to the depth buffer. This latter approach can be used to implement "transparent occlusion planes", or surfaces that occlude other geometry without being visible to the user.

Summary

Enum values

Material.ColorWriteMask  ALL

Write all colors for the Material. 

Material.ColorWriteMask  ALPHA

Write only the alpha channel for the Material. 

Material.ColorWriteMask  BLUE

Write only blue colors for the Material. 

Material.ColorWriteMask  GREEN

Write only green colors for the Material. 

Material.ColorWriteMask  NONE

Do not write any colors for the Material. 

Material.ColorWriteMask  RED

Write only red colors for the Material. 

Public methods

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

Enum values

ALL

Material.ColorWriteMask ALL

Write all colors for the Material.

ALPHA

Material.ColorWriteMask ALPHA

Write only the alpha channel for the Material.

BLUE

Material.ColorWriteMask BLUE

Write only blue colors for the Material.

GREEN

Material.ColorWriteMask GREEN

Write only green colors for the Material.

NONE

Material.ColorWriteMask NONE

Do not write any colors for the Material.

RED

Material.ColorWriteMask RED

Write only red colors for the Material.

Public methods

valueOf

Material.ColorWriteMask valueOf (String name)

Parameters
name String

Returns
Material.ColorWriteMask

values

ColorWriteMask[] values ()

Returns
ColorWriteMask[]

Hooray!