Back to Filament

BlendingMode

docs/android/dokka/filament-android/com.google.android.filament/-material/-blending-mode/index.md

1.75.02.1 KB
Original Source

//filament-android/com.google.android.filament/Material/BlendingMode

BlendingMode

enum BlendingMode

Supported blending modes

See also

<a href="https://google.github.io/filament/Materials.html#materialdefinitions/materialblock/blendingandtransparency:blending">Blending and transparency: blending

Entries

OPAQUE[main]
OPAQUE
Material is opaque.
TRANSPARENT[main]
TRANSPARENT
Material is transparent and color is alpha-pre-multiplied. Affects diffuse lighting only.
ADD[main]
ADD
Material is additive (e.g.: hologram).
MASKED[main]
MASKED
Material is masked (i.e. alpha tested).
FADE[main]
FADE
Material is transparent and color is alpha-pre-multiplied. Affects specular lighting.
MULTIPLY[main]
MULTIPLY
Material darkens what's behind it.
SCREEN[main]
SCREEN
Material brightens what's behind it.

Functions

NameSummary
valueOf[main]
open fun valueOf(name: String): Material.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.)
values[main]
open fun values(): Array<Material.BlendingMode>
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.