MaterialBlendMode class final
How a blended surface is combined with what is behind it — read only when RenderMaterial.alphaMode is MaterialAlphaMode.blend.
A final class with const instances rather than an enum, the rule for a
type a published package exports and may grow.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
byName(
String name) → MaterialBlendMode? -
The value called
name, or null for a name this version does not know, which is what a file written by a later version can carry.
Constants
- additive → const MaterialBlendMode
- The colour, times its alpha, added to what is there — light that adds: a glow, a beam, a spark. Commutative, so it needs no order.
- alpha → const MaterialBlendMode
- Over, on straight colour: glTF's blend, and what a blended material has always drawn with. The stage weighs its colour by its alpha.
- premultiplied → const MaterialBlendMode
-
Over, on a colour the stage already multiplied by its alpha, so a
stage can add light and cover at once. Honoured by a stage that says
so — a material-language stage whose state block reads
blend premultipliedleaves its colour as it returned it. The engine's own lighting models weigh their colour by their alpha whatever this says, so on them it draws as alpha does. -
values
→ const List<
MaterialBlendMode> - Every blend mode, in declaration order.