Scripting API

Scripting API

ImportColor

Enum in Abyss.Core, from Abyss.Core.

What the numbers in an image file mean.

public enum ImportColor : uint

Remarks

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

NameValueDescription
AsFormat0Let the format decide, which is sRGB for everything the engine cannot tell.
Srgb1Color somebody chose: the bytes are sRGB-encoded and the hardware decodes them.
Linear2Numbers a shader reads: the bytes are the values, untouched.