object AlphaMode


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

Summary

Constants

const Int

The material is alpha-blended with the background.

const Int

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

const Int

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

Constants

ALPHA_MODE_BLEND

Added in 1.0.0-alpha08
const val ALPHA_MODE_BLEND = 2: Int

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

ALPHA_MODE_MASK

Added in 1.0.0-alpha08
const val ALPHA_MODE_MASK = 1: Int

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
const val ALPHA_MODE_OPAQUE = 0: Int

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