srgb
Implements conversion between linear and sRGB color space. Color values are in the range [0, 1]. Alpha is not affected by the conversion.
Convert color (or a single color channel) from linear to sRGB space
float sRGBFromLinear(float v);
vec3 sRGBFromLinear(vec3 color);
vec4 sRGBFromLinear(vec4 color);
Convert color (or a single color channel) from sRGB to linear space
float sRGBToLinear(float v);
vec3 sRGBToLinear(vec3 color);
vec4 sRGBToLinear(vec4 color);