class AlphaMode


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

Summary

Public companion properties

AlphaMode

The material is alpha-blended with the background.

AlphaMode

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

AlphaMode

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

Public functions

open String

Public companion properties

BLEND

val BLENDAlphaMode

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

MASK

val MASKAlphaMode

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

val OPAQUEAlphaMode

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

Public functions

toString

open fun toString(): String