mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 14:21:31 +00:00
Ensure proper precedence when calculating SRGB to linear conversion
This commit is contained in:
1 parent
8c8cf07385
commit
1a2ff55fa4
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user