73 float bass = texture(
spectrum, 0.04).r;
74 float mid = texture(
spectrum, 0.22).r;
75 float hiMid = texture(
spectrum, 0.38).r;
76 float treble = texture(
spectrum, 0.55).r;
77 float air = texture(
spectrum, 0.80).r;
80 vec2 uv = (tc - 0.5) * vec2(aspect, 1.0);
82 float dist = length(uv);
83 float angle = atan(uv.y, uv.x);
86 float seg = floor(8.0 + bass * 8.0);
91 float gradVal = length(kUV) * 3.0 + kUV.x * 2.0;
92 gradVal +=
iTime * 0.5;
93 vec3 gradColor =
rainbow(gradVal + bass);
96 vec2 texUV =
mirror(kUV * 0.6 + 0.5);
97 vec3 tex = texture(samp, texUV).rgb;
100 float bands = sin(gradVal * 5.0 + mid *
PI) * 0.5 + 0.5;
101 tex = mix(tex, tex * gradColor * 1.4, 0.35 * bands);
104 vec3 echo = vec3(0.0);
105 for (
float e = 1.0; e < 5.0; e++) {
106 vec2 eKUV =
kaleidoscope(uv * (1.0 + e * 0.04), seg + e);
108 vec3 s = texture(samp,
mirror(eKUV * 0.6 + 0.5)).rgb;
109 float eGrad = length(eKUV) * 3.0 + eKUV.x * 2.0 +
iTime * 0.5 + e * 0.5;
111 echo += s * (0.25 / e);
114 vec3 result = tex + echo;
118 result = mix(result, result.gbr, sin(
hueShift) * 0.4 + 0.4);
119 result = mix(result, result.brg, sin(
hueShift * 0.7) * 0.2 + 0.2);
125 result = mix(result, vec3(1.0) - result, smoothstep(0.9, 1.0,
amp_peak));
127 color = vec4(result, 1.0);