public final class AlphaMode


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

Summary

Public fields

static final @NonNull AlphaMode

The material is alpha-blended with the background.

static final @NonNull AlphaMode

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

static final @NonNull AlphaMode

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

Public methods

@NonNull String

Public fields

BLEND

public static final @NonNull AlphaMode BLEND

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

MASK

public static final @NonNull AlphaMode MASK

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

OPAQUE

public static final @NonNull AlphaMode OPAQUE

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

Public methods

toString

public @NonNull String toString()