44 vec3 src = texture(samp, tc).rgb;
45 float mouseEdge = smoothstep(1.0, 0.0, distance(tc, mouseUV));
47 float gx =
luminance(texture(samp, tc + vec2(px.x, 0.0)).rgb) -
luminance(texture(samp, tc - vec2(px.x, 0.0)).rgb);
48 float gy =
luminance(texture(samp, tc + vec2(0.0, px.y)).rgb) -
luminance(texture(samp, tc - vec2(0.0, px.y)).rgb);
49 float edge = smoothstep(0.04, 0.28, length(vec2(gx, gy)));
50 float bands = smoothstep(0.88, 1.0, sin((l + tc.y * 0.7) * 55.0 - t * 3.0) * 0.5 + 0.5);
51 vec3
neon = 0.55 + 0.45 * cos(vec3(0.0, 2.2, 4.4) + l * 8.0 + t);
52 vec3 c = src * 0.42 +
neon * (bands * 0.55 + edge * 0.85);
53 c += mouseEdge * vec3(0.1, 0.04, 0.14);