BlendingMode

Represents the blending mode of the material.

Blending mode determines how the material blends with the background or other materials.

Entries

Link copied to clipboard

Opaque mode means the material is fully opaque. No transparency is applied, and the material completely covers any background or underlying objects.

Link copied to clipboard

Transparent mode means the alpha value controls the transparency of the material, allowing the background or underlying objects to be visible through it. Specular highlights and reflections remain unaffected.

Link copied to clipboard

Additive blending mode, the colors of the material are added to the colors of the background.

Link copied to clipboard

Fade blending mode, the alpha value not only affects the transparency of the material, but also gradually fades the specular highlights and reflections.

Link copied to clipboard

Masked blending mode, pixels are either fully opaque or fully transparent, based on a threshold.

Properties

Link copied to clipboard
val entries: EnumEntries<BlendingMode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): BlendingMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<BlendingMode>

Returns an array containing the constants of this enum type, in the order they're declared.