Most visited

Recently visited

Material.BlendMode

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

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


BlendMode determines how a pixel's color, as it is being rendered, interacts with the color of the pixel already in the framebuffer. The former pixel is called the "source" pixel, and the latter the "destination" pixel.

Summary

Enum values

Material.BlendMode  ADD

The source and destination pixel colors are added together. 

Material.BlendMode  ALPHA

Blend based on the incoming pixel's alpha value. 

Material.BlendMode  MULTIPLY

The source color is multiplied by the destination color. 

Material.BlendMode  NONE

Disables blending: the incoming (source) pixel completely overwrites any existing (destination) pixel. 

Material.BlendMode  SCREEN

The inverse of the source color is multiplied by the inverse of the destination color. 

Material.BlendMode  SUBTRACT

The source color is subtracted from the destination color. 

Public methods

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

Enum values

ADD

Material.BlendMode ADD

The source and destination pixel colors are added together. This is useful for creating a 'glow' effect.

ALPHA

Material.BlendMode ALPHA

Blend based on the incoming pixel's alpha value. The source pixel is multiplied by its alpha value and the destination pixel is multiplied by 1.0 minus the source pixel's alpha value.

MULTIPLY

Material.BlendMode MULTIPLY

The source color is multiplied by the destination color. This results in colors that are at the same brightness or darker than either the source or destination color.

NONE

Material.BlendMode NONE

Disables blending: the incoming (source) pixel completely overwrites any existing (destination) pixel.

SCREEN

Material.BlendMode SCREEN

The inverse of the source color is multiplied by the inverse of the destination color. This results in colors that are the same brightness or lighter than either the source or destination color.

SUBTRACT

Material.BlendMode SUBTRACT

The source color is subtracted from the destination color.

Public methods

valueOf

Material.BlendMode valueOf (String name)

Parameters
name String

Returns
Material.BlendMode

values

BlendMode[] values ()

Returns
BlendMode[]

Hooray!