diff --git a/Data/Sys/Shaders/PerceptualHDR.glsl b/Data/Sys/Shaders/PerceptualHDR.glsl index eed5ec9235..e6d2277fd7 100644 --- a/Data/Sys/Shaders/PerceptualHDR.glsl +++ b/Data/Sys/Shaders/PerceptualHDR.glsl @@ -5,7 +5,7 @@ GUIName = Amplificiation OptionName = AMPLIFICATION MinValue = 1.0 -MaxValue = 10.0 +MaxValue = 6.0 StepAmount = 0.25 DefaultValue = 2.5 @@ -119,8 +119,8 @@ 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 *= pow(HLG_f(AMPLIFICATION), luminance); + float exposure = length(ictcp_color.xyz); + ictcp_color *= pow(HLG_f(AMPLIFICATION), exposure); // Convert back to Linear RGB and output the color to the display. // We use hdr_paper_white to renormalize the color to the comfortable