mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-11 01:57:13 +00:00
Ensure proper precedence when calculating SRGB to linear conversion
This commit is contained in:
@@ -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