From e7c699f7feb534d58e41496ce86ffc1e5622777d Mon Sep 17 00:00:00 2001 From: Dogway Date: Mon, 27 Jul 2020 20:34:45 +0100 Subject: [PATCH] Update grade.slang --- misc/grade.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/grade.slang b/misc/grade.slang index 9e6114a..e156801 100644 --- a/misc/grade.slang +++ b/misc/grade.slang @@ -113,7 +113,7 @@ layout(std140, set = 0, binding = 0) uniform UBO #pragma parameter g_lum "Brightness" 0.0 -0.5 1.0 0.01 #pragma parameter g_cntrst "Contrast" 0.0 -1.0 1.0 0.05 #pragma parameter g_mid "Contrast Pivot" 0.5 0.0 1.0 0.01 -#pragma parameter wp_temperature "White Point" 5505.0 5005.0 12005.0 100.0 +#pragma parameter wp_temperature "White Point" 6504.0 5004.0 12004.0 100.0 #pragma parameter g_sat "Saturation" 0.0 -1.0 2.0 0.01 #pragma parameter g_vibr "Dullness/Vibrance" 0.0 -1.0 1.0 0.05 #pragma parameter g_satr "Hue vs Sat Red" 0.0 -1.0 1.0 0.01 @@ -892,7 +892,7 @@ void main() m_in*src_h; // White Point Mapping - vec3 wp = wp_adjust(global.wp_temperature); + vec3 wp = wp_adjust(global.wp_temperature - 1000.); vec3 base = (crtgamut == 0.0) ? RGB_to_XYZ(src_h, SPC) : gamut; base = XYZtoYxy(base); vec3 adjusted = (crtgamut == 0.0) ? RGB_to_XYZ(src_h, SPC) * wp : gamut * wp;