79 float bass = texture(
spectrum, 0.03).r;
80 float mid = texture(
spectrum, 0.22).r;
81 float hiMid = texture(
spectrum, 0.40).r;
82 float treble = texture(
spectrum, 0.58).r;
83 float air = texture(
spectrum, 0.78).r;
86 vec2 uv = (tc - 0.5) * vec2(aspect, 1.0);
90 for (
int i = 0; i < 5; i++) {
92 p = p * (1.2 + bass * 0.2) - 0.3;
93 p *=
rot(
iTime * 0.08 +
float(i) * 0.4 + mid * 0.3);
97 vec3 result = vec3(0.0);
99 for (
float e = 0.0; e < 6.0; e++) {
101 for (
int i = 0; i < 5; i++) {
103 ep = ep * (1.2 + bass * 0.2 + e * 0.02) - 0.3;
104 ep *=
rot(
iTime * 0.08 +
float(i) * 0.4 + mid * 0.3 + e * 0.05);
106 vec2 texUV =
mirror(ep * 0.5 + 0.5);
107 vec3 s = texture(samp, texUV).rgb;
109 float w = 1.0 / (1.0 + e * 0.5);
116 float dGlow = length(p);
118 result = mix(result, result * grad * 1.3, 0.3 + treble * 0.2);
121 result = mix(result, result.brg, smoothstep(0.3, 0.7, sin(
iTime * 0.6)));
124 result += air * 0.08 *
rainbow(
iTime * 0.4 + length(uv));
126 result = mix(result, vec3(1.0) - result, smoothstep(0.9, 1.0,
amp_peak));
127 color = vec4(result, 1.0);