37 float dist = distance(tc, mousePos);
38 float glitchStrength = exp(-dist * 10.0) * (
uamp) * 4.0;
40 sin(
time_f * 10.0 + tc.y * 20.0) * glitchStrength,
41 cos(
time_f * 15.0 + tc.x * 25.0) * glitchStrength
45 color = texture(samp, distortedTc);
46 vec4 originalColor = texture(samp, tc);
47 float blendFactor = smoothstep(0.0, 0.1, glitchStrength);
48 color = mix(originalColor, color, blendFactor);
49 color = vec4(sin(color.rgb *
time_f), 1.0);