90 float columns = abs(sin(point.x * (13.0 + middle * 8.0) + sin(point.y * 7.0 -
time_f * 2.2) * 1.8));
91 float ceiling = abs(sin(length(point * vec2(0.75, 1.8)) * (18.0 + bass * 9.0) -
time_f * 4.0));
92 float current = abs(sin((point.x + point.y) * 27.0 +
time_f * 6.0 + high * 5.0));
93 return 1.0 - min(columns * ceiling * current * 2.4, 1.0);
101 vec2 aspect = vec2(resolution.x / resolution.y, 1.0);
102 vec2 point = (tc - 0.5) * aspect;
103 float bass = texture(spectrum0, 0.04).r;
104 float middle = texture(spectrum0, 0.31).r;
105 float high = texture(spectrum0, 0.72).r;
107 vec2
warp = vec2(sin(point.y * 19.0 -
time_f * 3.0), cos(point.x * 17.0 +
time_f * 2.0)) *
energy * (0.012 + bass * 0.035);
109 live = live * (0.7 +
palette(point.y * 0.4 +
time_f * 0.1) * 0.8);
112 vec3 accumulated = live * 1.15;
113 float total_weight = 1.15;
114 for (
int index = 0; index <
SIZE; ++index) {
115 float generation = float(index + 1);
116 float age = generation / float(max(
SIZE, 1));
118 vec2 cache_point = point;
119 cache_point.x *= 1.0 - age * (0.08 + old_audio.x * 0.08);
120 cache_point.y += sin(cache_point.x * 12.0 + generation +
time_f) * old_audio.y * 0.045;
121 cache_point.y *= 1.0 + age * 0.035;
123 memory *=
palette(age + old_audio.z * 0.35 + point.y * 0.12);
124 float weight = exp(-age * 2.0) * (0.75 + old_audio.x * 0.5);
125 accumulated += memory * weight;
126 total_weight += weight;
128 vec3 result = accumulated / total_weight;
130 result = result / (0.72 + result);
131 result = (result - 0.5) * (1.2 +
amp_smooth * 0.25) + 0.5;
132 color = vec4(clamp(result, 0.0, 1.0), 1.0);