Scripting API
Scripting API
ImportColor
Enum in Abyss.Core, from Abyss.Core.
What the numbers in an image file mean.
public enum ImportColor : uintRemarks
A base color texture holds colors somebody looked at, encoded for an eye; a normal map, a roughness map or a mask holds numbers a shader does arithmetic on. Reading one as the other is the most common texture mistake there is, and no image format records which it is.
Values
| Name | Value | Description |
|---|---|---|
AsFormat | 0 | Let the format decide, which is sRGB for everything the engine cannot tell. |
Srgb | 1 | Color somebody chose: the bytes are sRGB-encoded and the hardware decodes them. |
Linear | 2 | Numbers a shader reads: the bytes are the values, untouched. |
