Skip to main content
Version: Dev (main)

ColorAlphaMode enum

What a render sender's colour alpha means. Published with the stream, so a receiver composites by it instead of guessing.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public enum ColorAlphaMode

Values​

NameValueDescription
Unspecified0Not declared: a receiver keeps its own default.
Opaque1The alpha channel means nothing; every pixel is fully covered.
Premultiplied2The colour is premultiplied by the alpha, and the alpha is the pixel's coverage: what a renderer produces drawing over a transparent-black clear.
Straight3The colour is not multiplied by the alpha, and the alpha is the pixel's coverage. The sender premultiplies the colour before the frame leaves the application, so the stream publishes Premultiplied. Costs one shader pass per frame.