diff --git a/data/effects/color-grade.effect b/data/effects/color-grade.effect index cbae6779..a0516448 100644 --- a/data/effects/color-grade.effect +++ b/data/effects/color-grade.effect @@ -50,8 +50,10 @@ uniform float4 pCorrection; // Functionality //------------------------------------------------------------------------------ -float3 grade_lift(float3 v) { // same as grade_offset? - return (v.rgb + pLift.rgb) + pLift.a; +float3 grade_lift(float3 v) { + float3 multiplier1 = float3(1., 1., 1.) - pLift.rgb; + float3 multiplier2 = float3(1., 1., 1.) - pLift.aaa; + return float3(1., 1., 1.) - ((float3(1., 1., 1.) - v) * multiplier1 * multiplier2); }; float3 grade_gamma(float3 v) {