Fix saturate on the wrong sub-expression clamping sRGB white slightly

This commit is contained in:
baldurk
2016-08-19 17:23:23 +02:00
parent a786ac2eab
commit 79b860c1d5
+1 -1
View File
@@ -62,7 +62,7 @@ float ConvertSRGBToLinear(float srgb)
if (srgb <= 0.04045f)
return srgb / 12.92f;
else
return pow(saturate(srgb + 0.055f) / 1.055f, 2.4f);
return pow(saturate(srgb) + 0.055f / 1.055f, 2.4f);
}
// main texture display shader, used for the texture viewer. It samples the right resource