102 vec2 aspect = vec2(resolution.x / resolution.y, 1.0);
103 vec2 center = vec2(0.5) + vec2(sin(
time_f * 0.31), cos(
time_f * 0.27)) * 0.07;
104 vec2 point = (tc - center) * aspect;
105 float bass = texture(spectrum0, 0.03).r;
106 float middle = texture(spectrum0, 0.25).r;
107 float high = texture(spectrum0, 0.69).r;
108 float radius = max(length(point), 0.003);
109 float halo =
halo_field(point, bass, middle, high);
110 vec2 radial = point / radius;
111 vec2
warp = radial * sin(radius * 45.0 -
time_f * 7.0) * halo * (0.018 + bass * 0.05);
114 live +=
palette(halo + radius -
time_f * 0.16) * pow(halo, 5.0) * (0.9 + high * 2.4);
116 vec3 accumulated = live * 1.1;
117 float total_weight = 1.1;
118 for (
int index = 0; index <
SIZE; ++index) {
119 float generation = float(index + 1);
120 float age = generation / float(max(
SIZE, 1));
122 float scale = 1.0 - age * (0.13 + old_audio.x * 0.1);
123 float angle = age * (0.12 + old_audio.z * 0.42) * sin(
time_f * 0.4 + generation);
124 float cosine = cos(angle);
125 float sine = sin(angle);
126 vec2 cache_point = mat2(cosine, -sine, sine, cosine) * point * scale;
127 vec3 memory =
sample_cache(index, cache_point / aspect + center);
128 memory *=
palette(age * 0.75 + old_audio.y * 0.5 + radius * 0.15);
129 float weight = pow(0.77, generation) * (0.85 + old_audio.x * 0.55);
130 accumulated += memory * weight;
131 total_weight += weight;
133 vec3 result = accumulated / total_weight;
135 result = result / (0.74 + result);
136 result = (result - 0.5) * (1.25 +
amp_smooth * 0.24) + 0.5;
137 color = vec4(clamp(result, 0.0, 1.0), 1.0);