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  NONE

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

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.

NONE

Material.BlendMode NONE

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

Public methods

valueOf

Material.BlendMode valueOf (String name)

Parameters
name String

Returns
Material.BlendMode

values

BlendMode[] values ()

Returns
BlendMode[]

Hooray!