From 624f4972722d8228a82b93060d1bae51a339a551 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Mar 2024 00:05:58 +0000 Subject: [PATCH] shaders: fix missing premult for colorize in final blur fixes #136 --- src/renderer/Shaders.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/Shaders.hpp b/src/renderer/Shaders.hpp index 2710051..e5c6b35 100644 --- a/src/renderer/Shaders.hpp +++ b/src/renderer/Shaders.hpp @@ -355,7 +355,7 @@ void main() { pixColor.a *= boostA; if (colorize == 1) { - gl_FragColor = vec4(colorizeTint.r, colorizeTint.g, colorizeTint.b, pixColor.a); + gl_FragColor = vec4(colorizeTint.r * pixColor.a, colorizeTint.g * pixColor.a, colorizeTint.b * pixColor.a, pixColor.a); return; }