Skip to main content
Version: Dev (main)

ColorEncoding enum

What the numbers in a render sender's colour texture mean. Whatever is declared, the stream carries sRGB-encoded colour: a linear colour is encoded by the sender.

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

public enum ColorEncoding

Values​

NameValueDescription
Srgb0sRGB-encoded, as a display shows it: what a renderer stores in an sRGB render target. The default; nothing is converted.
Linear1Linear light, as a renderer stores it in a plain UNORM render target without encoding. The sender encodes it, at one GPU pass per frame. 8-bit linear values have already lost precision in the darks; R16G16B16A16 keeps them.