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 : uintRemarks
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
| Name | Value | Description |
|---|---|---|
Opaque | 0 | Fully opaque, whatever the alpha channel says. |
Mask | 1 | Fully opaque or fully invisible, decided against MaterialSpec.AlphaCutoff. |
Blend | 2 | Ordinary alpha blending. |
Premultiplied | 3 | Blending, with the color channels already multiplied by alpha. |
AlphaToCoverage | 4 | Coverage proportional to alpha, which needs multisampling to mean anything. |
Add | 5 | Added to what is behind it, the way light is. |
Multiply | 6 | Multiplied into what is behind it, the way a pigment is. |
