Change the scaling process to be more uniform across color space
This commit is contained in:
parent
069cf7e81f
commit
fa4e45e915
|
@ -5,7 +5,7 @@
|
||||||
GUIName = Amplificiation
|
GUIName = Amplificiation
|
||||||
OptionName = AMPLIFICATION
|
OptionName = AMPLIFICATION
|
||||||
MinValue = 1.0
|
MinValue = 1.0
|
||||||
MaxValue = 10.0
|
MaxValue = 6.0
|
||||||
StepAmount = 0.25
|
StepAmount = 0.25
|
||||||
DefaultValue = 2.5
|
DefaultValue = 2.5
|
||||||
|
|
||||||
|
@ -119,8 +119,8 @@ void main()
|
||||||
//
|
//
|
||||||
// For more information, see this desmos demonstrating this scaling process:
|
// For more information, see this desmos demonstrating this scaling process:
|
||||||
// https://www.desmos.com/calculator/syjyrjsj5c
|
// https://www.desmos.com/calculator/syjyrjsj5c
|
||||||
const float luminance = ictcp_color.x;
|
float exposure = length(ictcp_color.xyz);
|
||||||
ictcp_color *= pow(HLG_f(AMPLIFICATION), luminance);
|
ictcp_color *= pow(HLG_f(AMPLIFICATION), exposure);
|
||||||
|
|
||||||
// Convert back to Linear RGB and output the color to the display.
|
// Convert back to Linear RGB and output the color to the display.
|
||||||
// We use hdr_paper_white to renormalize the color to the comfortable
|
// We use hdr_paper_white to renormalize the color to the comfortable
|
||||||
|
|
Loading…
Reference in New Issue