263float effectField(vec2 p, vec2 origin,
float bass,
float mid,
float treble) {
265 float radius = length(q) + 0.001;
266 float angle = atan(q.y, q.x);
271 vec2 moonA = vec2(cos(t * 0.43), sin(t * 0.61)) * 0.22;
272 vec2 moonB = vec2(cos(t * 0.31 + 2.1), sin(t * 0.47 + 2.1)) * 0.31;
273 field = sin(length(q - moonA) * (26.0 + bass * 16.0) - t * 6.0) * 0.13;
274 field += sin(length(q - moonB) * (21.0 + mid * 14.0) - t * 4.6) * 0.12;
275 field += cos(angle * 5.0 - radius * 13.0 + t * 2.0) * 0.08;
276 }
else if (
MODE == 1) {
277 vec2 grid = abs(fract((q +
fbm(q * 3.0) * 0.04) * 9.0) - 0.5);
278 float circuit = exp(-min(grid.x, grid.y) * (32.0 + treble * 20.0));
279 field = circuit * 0.27 + sin(radius * 25.0 - t * 5.0) * 0.11;
280 field += sin((q.x - q.y) * 16.0 + t * 2.0) * 0.06;
281 }
else if (
MODE == 2) {
282 vec2
cell =
hexCell((q + vec2(t * 0.025, 0.0)) * 8.0);
283 float plate = pow(max(1.0 - length(
cell) * 1.45, 0.0), 4.0);
284 field = plate * (0.22 + 0.1 * cos(atan(
cell.y,
cell.x) * 6.0));
285 field += sin(radius * (28.0 + bass * 15.0) - t * 6.0) * 0.12;
286 }
else if (
MODE == 3) {
287 float helix = sin(angle * (4.0 + floor(treble * 5.0)) - radius * 19.0 - t * 5.0);
288 float counter = cos(angle * 3.0 + radius * 14.0 - t * 3.0);
289 field = helix * 0.16 + counter * 0.1 +
fbm(q * 5.0 - t * 0.15) * 0.13;
290 }
else if (
MODE == 4) {
291 vec2 maze = abs(fract((
rotate2D(0.25) * q) * 8.0) - 0.5);
292 float walls = 1.0 - smoothstep(0.04, 0.13, min(maze.x, maze.y));
293 field = walls * 0.24 + sin(radius * 23.0 - t * 5.0) * 0.11;
294 field += cos(angle * 8.0 + floor(radius * 10.0) * 1.7) * 0.05;
295 }
else if (
MODE == 5) {
296 float well = sin(log(radius + 0.04) * (13.0 + bass * 5.0) - angle * 4.0 + t * 4.0);
297 field = well * 0.2 + exp(-radius * 5.0) * 0.28;
298 field += sin(length(q - vec2(0.2, 0.0)) * 26.0 - t * 6.0) * 0.08;
299 }
else if (
MODE == 6) {
300 float petals = cos(angle * (7.0 + floor(treble * 4.0)) - radius * 12.0);
301 float bloom = pow(max(petals, 0.0), 4.0) * exp(-radius * 1.8);
302 field =
bloom * 0.3 + sin(radius * (25.0 + bass * 18.0) - t * 5.5) * 0.12;
303 }
else if (
MODE == 7) {
304 float meshA = sin(q.x * 19.0 + sin(q.y * 7.0 - t) * 4.0);
305 float meshB = sin(q.y * 17.0 + cos(q.x * 8.0 + t) * 4.0);
306 field = pow(1.0 - abs(meshA * meshB), 5.0) * 0.25;
307 field += sin(radius * 30.0 - t * (7.0 + bass * 3.0)) * 0.11;
308 }
else if (
MODE == 8) {
310 h.x *= 1.0 + 1.5 * abs(q.y);
311 float glass = sin(length(
h) * 28.0 - t * 5.0);
312 float waist = exp(-abs(q.x) * (8.0 + mid * 5.0)) * cos(q.y * 18.0 - t * 3.0);
313 field = glass * 0.13 + waist * 0.22 +
fbm(q * 4.0) * 0.08;
314 }
else if (
MODE == 9) {
315 float arches = cos(sqrt(q.x * q.x + 0.004) * 16.0 - q.y * 5.0);
316 float sonar = sin(radius * (27.0 + bass * 17.0) - t * 7.0);
317 field = arches * 0.16 + sonar * 0.13 + pow(max(cos(angle * 6.0), 0.0), 5.0) * 0.17;
318 }
else if (
MODE == 10) {
319 float spikes = pow(abs(sin(angle * 9.0 - radius * 21.0 + t * 2.0)), 8.0);
320 field = spikes * exp(-radius * 1.4) * 0.3;
321 field += sin(radius * (24.0 + bass * 20.0) - t * 6.0) * 0.12;
322 field += (
fbm(q * 6.0 + t * 0.08) - 0.5) * 0.15;
323 }
else if (
MODE == 11) {
324 vec2 k =
kaleido(q, 8.0 + floor(treble * 5.0));
325 field = sin(length(k - vec2(0.18, 0.0)) * 28.0 - t * 5.0) * 0.13;
326 field += cos(atan(k.y, k.x) * 5.0 - length(k) * 18.0) * 0.17;
327 }
else if (
MODE == 12) {
328 float canopy = sin(q.x * 11.0 + sin(q.y * 8.0 + t) * 3.0);
329 canopy *= cos(q.y * 13.0 - cos(q.x * 6.0 - t) * 3.0);
330 field = canopy * 0.16 + sin(radius * 29.0 - t * 7.0) * 0.12;
331 field += exp(-radius * 2.5) * 0.18;
332 }
else if (
MODE == 13) {
333 float shell = sin(log(radius + 0.08) * 14.0 - angle * 6.0 + t * 3.5);
334 float ribs = cos(angle * 12.0 + radius * 6.0);
335 field = shell * 0.18 + ribs * exp(-radius * 1.8) * 0.13;
336 field += sin(radius * (22.0 + bass * 18.0) - t * 5.0) * 0.09;
337 }
else if (
MODE == 14) {
338 float ribbons = sin(q.x * 15.0 + sin(q.y * 6.0 - t * 0.8) * 5.0);
339 ribbons += cos(q.y * 14.0 + sin(q.x * 7.0 + t) * 4.0);
340 field =
ribbons * 0.105 + sin(radius * 24.0 - t * 5.0) * 0.1;
341 }
else if (
MODE == 15) {
343 float geode = pow(max(1.0 - length(
cell) * 1.5, 0.0), 6.0);
344 float vortex = sin(angle * 5.0 - radius * 18.0 - t * 4.0);
345 field = geode * 0.29 +
vortex * 0.13 + sin(radius * 29.0 - t * 6.0) * 0.07;
346 }
else if (
MODE == 16) {
347 vec2
cell =
hexCell((q + vec2(sin(t * 0.2), cos(t * 0.17)) * 0.03) * 10.0);
348 float honey = smoothstep(0.5, 0.18, length(
cell));
349 field = honey * 0.25 + sin(radius * (25.0 + bass * 15.0) - t * 5.0) * 0.12;
351 }
else if (
MODE == 17) {
352 float torus = sin((radius - 0.28) * (34.0 + bass * 15.0) - t * 6.0);
353 float rain = sin(q.y * 27.0 + sin(q.x * 9.0 - t) * 5.0 + t * 4.0);
354 field = torus * exp(-abs(radius - 0.28) * 3.0) * 0.2 + rain * 0.1;
355 }
else if (
MODE == 18) {
356 float web = sin(angle * 10.0 + sin(radius * 14.0 - t * 2.0) * 2.0);
357 float rings = sin(radius * (26.0 + bass * 17.0) - t * 6.0);
358 field = pow(abs(web), 5.0) * 0.22 + rings * 0.12;
359 field +=
fbm(q * 5.0 - t * 0.1) * 0.1;
360 }
else if (
MODE == 19) {
361 float bell = exp(-abs(q.y + 0.06) * 3.0) * cos(q.x * 15.0);
362 float tentacles = sin(q.y * 19.0 + sin(q.x * 11.0 + t) * 4.0 - t * 3.0);
363 field = bell * 0.22 + tentacles * smoothstep(0.3, -0.4, q.y) * 0.12;
364 field += sin(radius * 23.0 - t * 5.0) * 0.08;
365 }
else if (
MODE == 20) {
366 float fault = tanh(sin(q.x * 8.0 +
fbm(q * 4.0) * 5.0 + t) * 4.0);
367 float aurora = sin(q.y * 15.0 + sin(q.x * 5.0 - t) * 4.0);
368 field = fault * 0.13 +
aurora * 0.13 + sin(radius * 27.0 - t * 6.0) * 0.08;
369 }
else if (
MODE == 21) {
370 float forge = sin(q.x * 17.0 + cos(q.y * 8.0 + t) * 5.0);
371 float cross = cos(q.y * 19.0 + sin(q.x * 6.0 - t) * 3.0);
372 field = abs(forge + cross) * 0.12 + sin(radius * 25.0 - t * 5.5) * 0.11;
373 }
else if (
MODE == 22) {
374 float lotus = pow(max(cos(angle * 9.0 - radius * 13.0 + t * 2.0), 0.0), 5.0);
375 float ripple = sin(radius * (28.0 + bass * 18.0) - t * 7.0);
376 field = lotus * exp(-radius * 1.7) * 0.31 +
ripple * 0.12;
377 }
else if (
MODE == 23) {
378 float handA = exp(-abs(sin(angle - t * 0.4)) * radius * 24.0);
379 float handB = exp(-abs(sin(angle + t * 0.23)) * radius * 32.0);
380 float clock = sin(radius * 32.0 - floor(t * 3.0) * 0.7);
381 field = (handA + handB) * 0.18 + clock * 0.12;
383 float nova = sin(radius * (35.0 + bass * 20.0) - t * 9.0);
384 float rays = pow(abs(cos(angle * (10.0 + floor(treble * 6.0)) + t)), 10.0);
385 float cathedral = cos(sqrt(q.x * q.x + 0.003) * 15.0 - q.y * 5.0);
386 field = nova * 0.13 + rays * exp(-radius * 2.2) * 0.26 + cathedral * 0.1;
389 vec2 sourceA = vec2(sin(t * 0.3), cos(t * 0.4)) * vec2(0.2, 0.15);
390 vec2 sourceB = vec2(-sin(t * 0.5), sin(t * 0.3)) * vec2(0.15, 0.2);
391 vec2 sourceC = vec2(cos(t * 0.2), -cos(t * 0.6)) * 0.1;
392 float density = mix(0.7, 1.55, max(
slider2, 0.1));
393 float rippleA = sin(length(q - sourceA) * (20.0 + bass * 15.0) * density - t * 5.0);
394 float rippleB = sin(length(q - sourceB) * (18.0 + mid * 12.0) * density - t * 4.0);
395 float rippleC = sin(length(q - sourceC) * (22.0 + treble * 10.0) * density - t * 6.0);
396 float interference = (rippleA + rippleB + rippleC) / 3.0;
398 float arms = 3.0 + floor(treble * 4.0 + max(
slider1, 0.1) * 5.0);
399 float twist = 15.0 - bass * 8.0;
400 float spiralPhase = angle * arms - radius *
twist - t * (4.0 +
amp_smooth * 8.0);
401 float spiral = pow(max(sin(spiralPhase), 0.0), 4.0) * exp(-radius * (2.0 - mid));
404 (
fbm(q * 3.2 + vec2(0.0, -t * 0.12)) - 0.5) * 0.06;
466 float aspect = resolution.x / resolution.y;
467 vec2 mouseUV =
iMouse.xy / resolution;
469 float bass = texture(spectrum0, 0.03).r;
470 float mid = texture(spectrum0, 0.22).r;
471 float treble = texture(spectrum0, 0.58).r;
472 float air = texture(spectrum0, 0.80).r;
475 vec2 p = (tc - 0.5) * vec2(aspect, 1.0);
476 vec2 origin =
iMouse.z > 0.0 ? (mouseUV - 0.5) * vec2(aspect, 1.0) : vec2(0.0);
477 float pixel = 2.0 / max(max(resolution.x, resolution.y), 360.0);
478 float radius = length(p - origin);
479 float historyShell = clamp(radius * 7.0, 0.0, 7.0);
480 int shellIndex = int(historyShell);
481 float shellFFT =
sampleHistory(min(shellIndex, 6), clamp(radius * 0.65, 0.0, 1.0));
483 float height =
effectField(p, origin, bass, mid, treble);
484 vec2 gradient = vec2(
effectField(p + vec2(pixel, 0.0), origin, bass, mid, treble) - height,
485 effectField(p + vec2(0.0, pixel), origin, bass, mid, treble) - height) /
487 vec3 normal = normalize(vec3(-gradient * (0.21 +
amp_high * 0.06), 1.0));
489 float waveDrive = sin(height * (18.0 + max(
slider2, 0.1) * 22.0) -
490 time_f * (3.0 + audioGate * 5.0) + shellFFT * 8.0);
491 vec2 radial = normalize(p - origin + vec2(0.001));
492 vec2 liveDistortion = normal.xy * (0.027 +
amp_low * 0.05) +
493 radial * waveDrive * (0.008 + shellFFT * 0.025 * max(
slider4, 0.1));
494 vec2 flowUV =
seamlessUV(tc + liveDistortion);
496 (0.005 + treble * 0.019 + abs(waveDrive) * 0.008) * mix(0.2, 2.4, max(
slider3, 0.1));
498 vec3(texture(samp,
seamlessUV(flowUV + normal.xy * dispersion)).r, texture(samp, flowUV).g,
499 texture(samp,
seamlessUV(flowUV - normal.xy * dispersion)).b);
501 vec3 viewDir = normalize(vec3(-p * 0.12, 1.8));
502 vec3 lightA = normalize(vec3(-0.55, 0.7, 0.82));
503 vec3 lightB = normalize(vec3(0.72, -0.18, 0.68));
504 float fresnel = pow(1.0 - max(dot(normal, viewDir), 0.0), 5.0);
505 float roughnessProfile = float(
MODE % 7) / 6.0;
507 pow(max(dot(normal, normalize(viewDir + lightA)), 0.0), mix(145.0, 34.0, roughnessProfile));
509 pow(max(dot(normal, normalize(viewDir + lightB)), 0.0), mix(82.0, 20.0, roughnessProfile));
510 float luminance = dot(live, vec3(0.299, 0.587, 0.114));
512 float mouseIntensity = length(mouseUV - vec2(0.5)) * 2.0;
513 float timeHue =
iMouse.z > 0.0 ? mouseIntensity *
time_f * 0.32 : 0.0;
514 float manualHue =
iMouse.w > 0.0 ? (mouseUV.x - 0.5) * 2.4 : 0.0;
515 vec3 acidMetal =
palette(height * 1.8 + bass +
time_f * 0.055 + timeHue + manualHue);
516 float modeIntensity = 1.15 + 0.25 * sin(
float(
MODE) * 2.17);
517 float alloyMix = 0.38 + 0.1 * float(
MODE % 4);
518 vec3 current = mix(live, acidMetal * (0.3 +
luminance), alloyMix) * modeIntensity;
519 current *= 0.14 + 0.62 * max(dot(normal, lightA), 0.0);
520 current +=
palette(normal.x * 0.23 - normal.y * 0.17 +
time_f * 0.035) *
521 (fresnel * 0.75 + specA * 2.3 + specB * 1.4);
523 vec3 accumulated = current;
524 float totalWeight = 1.0;
525 vec2 feedbackCenter =
526 iMouse.z > 0.0 ? mouseUV + liveDistortion * 0.15 : vec2(0.5) + liveDistortion * 1.5;
527 float manualZoom =
iMouse.w > 0.0 ? (0.5 - mouseUV.y) * 0.16 : 0.0;
528 vec3 userHue = vec3(sin(timeHue), cos(timeHue * 0.8), sin(timeHue * 1.2));
530 for (
int i = 0; i < 8; ++i) {
531 float generation = float(i + 1);
535 vec2 historyUV =
feedbackTransform(tc, feedbackCenter, generation, oldBass, oldMid,
536 oldTreble, normal.xy);
538 feedbackCenter + (historyUV - feedbackCenter) *
539 pow(max(1.0 + manualZoom - oldBass * 0.03, 0.05), generation);
541 float driftDirection = (
MODE % 2 == 0) ? 1.0 : -1.0;
542 float shift = generation * (0.045 + 0.012 * float(
MODE % 4));
543 history.r *= 1.0 + driftDirection * shift + oldMid * 0.32 + userHue.r * generation * 0.1;
545 1.0 - driftDirection * shift * 0.78 - oldBass * 0.18 + userHue.g * generation * 0.1;
547 1.0 + driftDirection * shift * 0.5 + oldTreble * 0.38 + userHue.b * generation * 0.1;
548 history *=
palette(height * 0.13 + generation * 0.052 + manualHue);
549 float historyDecay = 0.7 + 0.025 * float(
MODE % 5);
550 float weight = pow(historyDecay, generation);
551 accumulated += history * weight;
552 totalWeight += weight;
555 accumulated /= totalWeight;
556 float crest = pow(max(sin(height * 24.0 -
time_f * 2.5), 0.0), 8.0);
557 accumulated +=
palette(height +
time_f * 0.11 + timeHue) * crest * (0.55 + air * 2.0);
558 float vividRing = smoothstep(0.1, 0.95, waveDrive) * (0.2 + shellFFT + audioGate);
559 vec3 ringColor =
palette(radius * 2.0 + historyShell * 0.08 + shellFFT * 0.4 + manualHue);
560 accumulated = 1.0 - (1.0 - accumulated) * (1.0 - clamp(ringColor * vividRing, 0.0, 1.0));
561 accumulated += ringColor * vividRing * 0.55;
562 float signature =
modeOverlay(p - origin, height, audioGate);
563 vec3 signatureColor =
565 accumulated += signatureColor * signature * (0.28 +
amp_high * 0.75 + float(
MODE % 3) * 0.12);
567 accumulated = mix(accumulated, accumulated.brg, signature * 0.22);
569 accumulated = mix(accumulated, accumulated.gbr, signature * 0.2);
570 accumulated = mix(accumulated, vec3(1.0) - accumulated, smoothstep(0.91, 1.0,
amp_peak));
571 accumulated = (accumulated - 0.5) * (1.22 +
amp_smooth * 0.3) + 0.5;
573 color = vec4(
aces(max(accumulated, 0.0)), texture(samp, flowUV).a);