Change the scaling process to be more uniform across color space

This commit is contained in:
Sam Belliveau 2024-04-04 00:27:01 -04:00
parent 069cf7e81f
commit fa4e45e915

View File

@ -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