Shading
sRGB Gamma to Linear
sRGB Gamma
Linear
Formulas:
sRGB = if (Linear < 0.0031308) Linear * 12.92 else (1.055 * pow(Linear, 0.41666) - 0.055)
Linear = if (sRGB < 0.04045) sRGB * 0.0773993808 else (pow(sRGB * 0.9478672986 + 0.0521327014, 2.4))
Sources:
[0][1][2]