From a1f07fb370aa4fa3ebefc6d39e256958bf9f2c39 Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 9 Nov 2017 22:46:06 -0800 Subject: [PATCH] ClarityGFX Fixed a issue where Gamma would not return any value. --- .../bd8bba59e2149449_00000000000003c9_ps.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Enhancement/BreathOfTheWild_ClarityGFX/bd8bba59e2149449_00000000000003c9_ps.txt b/Enhancement/BreathOfTheWild_ClarityGFX/bd8bba59e2149449_00000000000003c9_ps.txt index a9b1fca6..d7a1459a 100644 --- a/Enhancement/BreathOfTheWild_ClarityGFX/bd8bba59e2149449_00000000000003c9_ps.txt +++ b/Enhancement/BreathOfTheWild_ClarityGFX/bd8bba59e2149449_00000000000003c9_ps.txt @@ -173,22 +173,22 @@ vec3 Technicolor2(vec3 inputColor) { vec3 LiftGammaGainPass( vec3 colorInput ) { // -- Get input -- - vec3 color = colorInput.rgb; + vec3 color = colorInput; // -- Lift -- color = color * (1.5-0.5 * RGB_Lift) + 0.5 * RGB_Lift - 0.5; - color = clamp(color, 0.0, 1. ); //isn't strictly necessary, but doesn't cost performance. + color = clamp(color, 0.0, 1.0); //isn't strictly necessary, but doesn't cost performance. // -- Gain -- color *= RGB_Gain; // -- Gamma -- - colorInput.rgb = pow(color, 1.0 / RGB_Gamma); //Gamma + color = pow(color, 1.0 / RGB_Gamma); //Gamma // -- Return output -- - //return (colorInput); - return clamp(color, 0.0, 1. ); + + return clamp(color, 0.0, 1.0); } //LumaShapening