From 069cf7e81fe58745916e006e97381c671b042f05 Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Thu, 28 Mar 2024 14:42:14 -0400 Subject: [PATCH] It's technically more correct to do it this way, difference is extremely subtle --- Data/Sys/Shaders/PerceptualHDR.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Sys/Shaders/PerceptualHDR.glsl b/Data/Sys/Shaders/PerceptualHDR.glsl index 98099cbf62..eed5ec9235 100644 --- a/Data/Sys/Shaders/PerceptualHDR.glsl +++ b/Data/Sys/Shaders/PerceptualHDR.glsl @@ -120,7 +120,7 @@ void main() // For more information, see this desmos demonstrating this scaling process: // https://www.desmos.com/calculator/syjyrjsj5c const float luminance = ictcp_color.x; - ictcp_color *= HLG_f(pow(AMPLIFICATION, luminance)); + ictcp_color *= pow(HLG_f(AMPLIFICATION), luminance); // Convert back to Linear RGB and output the color to the display. // We use hdr_paper_white to renormalize the color to the comfortable