🔧 Slight tweak the window fading of the glitch effect

This commit is contained in:
Simon Schneegans
2023-01-05 06:40:50 +01:00
parent c983a7838d
commit cc7f73b859
+1 -1
View File
@@ -57,7 +57,7 @@ void main() {
oColor.b = mix(oColor.b, getInputColor(vec2(xPos - offset, iTexCoord.y)).b, 0.25); oColor.b = mix(oColor.b, getInputColor(vec2(xPos - offset, iTexCoord.y)).b, 0.25);
// Dissolve the window. // Dissolve the window.
float fadeDelay = 2.0; float fadeDelay = 1.5;
float alpha = clamp(noise + 1.0 + fadeDelay - (3.0 + fadeDelay) * progress, 0.0, 1.0); float alpha = clamp(noise + 1.0 + fadeDelay - (3.0 + fadeDelay) * progress, 0.0, 1.0);
oColor.a *= alpha; oColor.a *= alpha;