API reference
API reference
Select your platform
No SDKs available
No versions available

BlendMode

BlendMode

enum BlendMode : Enum<BlendMode>
Enum class representing the blending modes for rendering.
This enum defines how the colors of a material are blended with the background or other materials during rendering.

Entries

NameSummary
OPAQUE

No blending is performed. This is the fastest and enables depth buffering.
TRANSLUCENT

This mode performs classic alpha blending, where the material’s color is blended with the background based on its alpha value.
ADDITIVE

In this mode, all channels (red, green, blue, and alpha) are added together.
NONE

No color is written for the material.

Properties

NameSummary
mode
val mode: Int
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): BlendMode

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.)
values
fun values(): Array<BlendMode>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon