public static class AlphaMode


Defines the constants for a Material's alpha mode, which corresponds to the glTF specification.

Summary

Constants

static final int

The material is alpha-blended with the background.

static final int

The material is opaque where alpha is greater than or equal to cutoff, otherwise it is discarded.

static final int

The material is fully opaque and the alpha channel is ignored.

Public fields

static @NonNull AlphaMode

Constants

ALPHA_MODE_BLEND

Added in 1.0.0-alpha08
public static final int ALPHA_MODE_BLEND = 2

The material is alpha-blended with the background. Corresponds to glTF's BLEND alpha mode.

ALPHA_MODE_MASK

Added in 1.0.0-alpha08
public static final int ALPHA_MODE_MASK = 1

The material is opaque where alpha is greater than or equal to cutoff, otherwise it is discarded. Corresponds to glTF's MASK alpha mode.

ALPHA_MODE_OPAQUE

Added in 1.0.0-alpha08
public static final int ALPHA_MODE_OPAQUE = 0

The material is fully opaque and the alpha channel is ignored. Corresponds to glTF's OPAQUE alpha mode.

Public fields

INSTANCE

Added in 1.0.0-alpha08
public static @NonNull AlphaMode INSTANCE