From 7e1c2ca80db78808f066709ae20ad510924e90ba Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 22 Apr 2021 11:58:20 +0200 Subject: [PATCH] filters/color-grading: Use explicit matrix initializer for GLSL support Fixes #510 --- data/effects/color-grade.effect | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/effects/color-grade.effect b/data/effects/color-grade.effect index a0516448..f6f3178f 100644 --- a/data/effects/color-grade.effect +++ b/data/effects/color-grade.effect @@ -75,11 +75,11 @@ float3 grade_tint(float3 v) { } else if (pTintDetection == TINT_DETECTION_HSL) { // HSL value = RGBtoHSL(v).z; } else if (pTintDetection == TINT_DETECTION_YUV_SDR) { // YUV HD SDR - const float3x3 mYUV709n = { // Normalized + const float3x3 mYUV709n = float3x3( // Normalized 0.2126, 0.7152, 0.0722, -0.1145721060573399, -0.3854278939426601, 0.5, 0.5, -0.4541529083058166, -0.0458470916941834 - }; + ); value = RGBtoYUV(v, mYUV709n).r; } @@ -110,8 +110,6 @@ float3 grade_colorcorrection(float3 v) { v1.g *= pCorrection.g; // Saturation Multiplier v1.b *= pCorrection.b; // Lightness Multiplier float3 v2 = HSVtoRGB(v1); - - return v2; };