🔧 Add more color to TV Glitch effect

This commit is contained in:
Simon Schneegans
2023-01-23 13:49:48 +01:00
parent 265187cac5
commit f833b49c25
+2 -1
View File
@@ -100,7 +100,8 @@ void main() {
float lrMask = 1.0 - smoothstep(0.0, 1.0, clamp((lrProg - lr) / BLUR_WIDTH, 0.0, 1.0));
float ffMask = 1.0 - smoothstep(0.0, 1.0, ffProg);
// Assemble the final alpha value.
// Assemble the final color value.
oColor.rgb = mix(oColor.rgb, uColor * oColor.a, smoothstep(0.0, 1.0, tvProgress));
float mask = tbMask * lrMask * ffMask;
oColor.a *= mask;