shaders: fix missing premult for colorize in final blur

fixes #136
This commit is contained in:
Vaxry 2024-03-06 00:05:58 +00:00
parent cdb8e7774f
commit 624f497272

View file

@ -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;
}