Scripting API

Scripting API

AlphaKind

Enum in Abyss.Core, from Abyss.Core.

Which of Bevy's transparency rules a surface is drawn under.

public enum AlphaKind : uint

Remarks

The engine names these itself rather than carrying Bevy's enum. Bevy's AlphaMode is a reflected type whose discriminants nobody has promised to keep, and one of its cases carries a value — a masking threshold — so it is not a number at all. The threshold lives in MaterialSpec.AlphaCutoff, and these values are matched one for one against the engine's own enum.

Values

NameValueDescription
Opaque0Fully opaque, whatever the alpha channel says.
Mask1Fully opaque or fully invisible, decided against MaterialSpec.AlphaCutoff.
Blend2Ordinary alpha blending.
Premultiplied3Blending, with the color channels already multiplied by alpha.
AlphaToCoverage4Coverage proportional to alpha, which needs multisampling to mean anything.
Add5Added to what is behind it, the way light is.
Multiply6Multiplied into what is behind it, the way a pigment is.