58 float bass = texture(
spectrum, 0.03).r;
59 float mid = texture(
spectrum, 0.20).r;
60 float hiMid = texture(
spectrum, 0.42).r;
61 float treble = texture(
spectrum, 0.60).r;
62 float air = texture(
spectrum, 0.80).r;
65 vec2 p = (tc - 0.5) * vec2(aspect, 1.0);
69 p =
rot(
iTime * 0.3 + bass * 1.5) * p;
72 float rad = length(p) + 1e-6;
73 float ang = atan(p.y, p.x);
74 float N = 8.0 + floor(mid * 8.0);
75 float stepA =
TAU /
N;
76 float a = mod(ang +
iTime * 0.05, stepA);
77 a = abs(a - stepA * 0.5);
80 float radialSilk = smoothstep(0.035, 0.0, abs(a));
81 float ringSilk = smoothstep(0.05, 0.0, abs(fract(log(rad) * 2.5 + bass * 0.5 +
iTime * 0.2) - 0.5));
82 float web = max(radialSilk, ringSilk);
85 vec2
kaleido = vec2(cos(a), sin(a)) * rad;
90 vec3 neonAccum = vec3(0.0);
92 for (
float i = 0.0; i < 5.0; i++) {
93 fuv = fract(fuv * (1.4 + hiMid * 0.3)) - 0.5;
94 fuv =
rot(
iTime * 0.1 + i * 0.6) * fuv;
96 if (fuv.y > fuv.x) fuv = fuv.yx;
98 float d = length(fuv) * exp(-length(p0));
99 d = sin(d * (8.0 + treble * 6.0) +
iTime) / 8.0;
101 d = pow(0.01 / d, 1.1);
103 neonAccum +=
neon(length(p0) + i * 0.15 +
iTime * 0.2) * d;
107 float shimmer = treble * 0.03 * sin(
iTime * 12.0 + rad * 20.0);
109 col.r = texture(samp, sampUV + vec2(shimmer, 0.0)).r;
110 col.g = texture(samp, sampUV).g;
111 col.b = texture(samp, sampUV - vec2(shimmer, 0.0)).b;
114 vec3 silkGlow =
neon(
iTime * 0.15 + rad + bass) * web * (2.5 + air * 3.0);
115 col += silkGlow * 0.4;
118 col = mix(col, col + neonAccum * 0.3, 0.4 + mid * 0.2);
121 col = mix(col, vec3(1.0) - col, smoothstep(0.93, 1.0,
amp_peak));
123 color = vec4(col, 1.0);