138 vec3 pink = vec3(1.0, 0.15, 0.75);
139 vec3 blue = vec3(0.10, 0.55, 1.0);
140 vec3 green = vec3(0.10, 1.00, 0.45);
141 float ph = fract(t * 0.08);
142 vec3 k1 = mix(pink, blue, smoothstep(0.00, 0.33, ph));
143 vec3 k2 = mix(blue, green, smoothstep(0.33, 0.66, ph));
144 vec3 k3 = mix(green, pink, smoothstep(0.66, 1.00, ph));
145 float a = step(ph, 0.33);
146 float b = step(0.33, ph) * step(ph, 0.66);
147 float c = step(0.66, ph);
148 return normalize(a * k1 + b * k2 + c * k3) * 1.05;
172 vec3 s00 = textureGrad(img, uv + ts * vec2(-1.0, -1.0), dFdx(uv), dFdy(uv)).rgb;
173 vec3 s10 = textureGrad(img, uv + ts * vec2(0.0, -1.0), dFdx(uv), dFdy(uv)).rgb;
174 vec3 s20 = textureGrad(img, uv + ts * vec2(1.0, -1.0), dFdx(uv), dFdy(uv)).rgb;
175 vec3 s01 = textureGrad(img, uv + ts * vec2(-1.0, 0.0), dFdx(uv), dFdy(uv)).rgb;
176 vec3 s11 = textureGrad(img, uv, dFdx(uv), dFdy(uv)).rgb;
177 vec3 s21 = textureGrad(img, uv + ts * vec2(1.0, 0.0), dFdx(uv), dFdy(uv)).rgb;
178 vec3 s02 = textureGrad(img, uv + ts * vec2(-1.0, 1.0), dFdx(uv), dFdy(uv)).rgb;
179 vec3 s12 = textureGrad(img, uv + ts * vec2(0.0, 1.0), dFdx(uv), dFdy(uv)).rgb;
180 vec3 s22 = textureGrad(img, uv + ts * vec2(1.0, 1.0), dFdx(uv), dFdy(uv)).rgb;
181 return (s00 + 2.0 * s10 + s20 + 2.0 * s01 + 4.0 * s11 + 2.0 * s21 + s02 + 2.0 * s12 + s22) / 16.0;
269 float aAcc = clamp(
amp, 0.0, 4.0);
270 float aInst = clamp(
uamp, 0.0, 4.0);
271 float ampMix = clamp(aAcc * 0.6 + aInst * 1.4, 0.0, 4.0);
272 gAmp01 = clamp(ampMix / 2.5, 0.0, 1.0);
273 gInstAmp = clamp(aInst / 2.5, 0.0, 1.0);
279 vec4 baseTex = texture(samp, tc);
282 vec2 uv = tc * 2.0 - 1.0;
284 float rLen = length(uv);
286 float radius = sqrt(aspect * aspect + 1.0) + 0.5;
287 float glow = smoothstep(radius, radius - (0.25 +
amp_low * 0.3), r);
290 vec2 ar = vec2(aspect, 1.0);
294 float seg = 4.0 + 2.0 * sin(
gSlow * 0.33 +
gAmp01 * 2.0);
295 vec2 kUV =
reflectUV(tc, seg, m, aspect);
298 float foldZoom = 1.45 + 0.55 * sin(
gSlow * 0.42 +
gAmp01 * 3.0);
303 vec2 p = (kUV - m) * ar;
305 if (q.y > q.x) q = q.yx;
309 float tz =
gSlow * 0.65;
312 float ang = atan(q.y, q.x) + tz * 0.35 + 0.35 * sin(rD * 18.0 +
gFast * 0.6);
313 float k = fract((log(rD) - tz) / period);
314 float rw = exp(k * period);
315 vec2 pwrap = vec2(cos(ang), sin(ang)) * rw;
317 vec2 u0 = fract(pwrap / ar + m);
318 vec2 u1 = fract((pwrap * 1.045) / ar + m);
319 vec2 u2 = fract((pwrap * 0.955) / ar + m);
320 vec2 dir = normalize(pwrap + 1e-6);
321 vec2 off = dir * (0.0015 + 0.001 * sin(
gFast * 1.3)) * vec2(1.0, 1.0 / aspect);
323 float vign = 1.0 - smoothstep(0.75, 1.2, length((tc - m) * ar));
324 vign = mix(0.9, (1.15 +
amp_smooth * 0.2), vign);
331 vec3 kaleidoRGB = vec3(
333 sin(gC.g * oscK * 1.05),
334 sin(bC.b * oscK * 1.1)
337 float ring = smoothstep(0.0, 0.7, sin(log(rD + 1e-3) * 9.5 +
gFast * 1.2));
340 float pulse = 0.5 + 0.5 * sin(
gFast * 2.0 + rD * 28.0 + k * 12.0);
341 pulse *= mix(0.4, 1.4,
gAmp01);
343 vec3 outCol = kaleidoRGB;
344 outCol *= (0.75 + 0.25 * ring) * (0.85 + 0.15 * pulse) * vign;
346 vec3
bloom = outCol * outCol * 0.10 + pow(max(outCol - 0.6, 0.0), vec3(2.0)) * 0.07;
349 vec2 wh1 =
wormholeUV(tc + vec2(0.0009, 0.0), m, aspect,
gSlow + 0.03);
350 vec2 wh2 =
wormholeUV(tc - vec2(0.0009, 0.0), m, aspect,
gSlow - 0.03);
359 sin(whG.g * oscW * 1.05),
360 sin(whB.b * oscW * 1.1)
363 float rCenter = length((tc - m) * ar);
364 float throat = sin(smoothstep(0.38, 0.06, rCenter) *
pingPong(
gSlow *
PI, 5.0));
366 float swirlGate = smoothstep(0.9, 1.6,
gSlow * 0.25 + 0.35 * sin(
gSlow * 0.7))
369 float gateBase = clamp(throat * (0.65 + 0.35 *
pingPong(
gSlow *
PI, 5.0))
370 +
pingPong(swirlGate *
PI, 8.0) * 0.15, 0.0, 1.0);
372 float hitBoost = clamp(aInst * 0.6, 0.0, 1.2);
373 float gate = clamp(gateBase * (0.6 + 0.9 *
gAmp01) + hitBoost, 0.0, 1.0);
376 outCol = mix(outCol, baseCol,
pingPong(pulse *
PI, 5.0) * 0.18);
377 outCol = mix(outCol, wormRGB, gate * 0.85);
378 outCol = clamp(outCol, vec3(0.05), vec3(0.97));
379 outCol *= mix(0.85, 1.20,
gAmp01);
381 vec3 finalRGB = mix(baseTex.rgb, outCol,
pingPong(glow *
PI, 5.0) * 0.8);
383 finalRGB = clamp(finalRGB, 0.0, 1.0);
387 float _ab = clamp(
amp_peak, 0.0, 1.0);
388 float _abass = clamp(
amp_low, 0.0, 1.0);
389 finalRGB *= 1.0 + _ab * 0.6;
390 finalRGB = mix(finalRGB, finalRGB * vec3(1.0 + _abass * 0.3, 1.0 - _abass * 0.15, 1.0 + clamp(
amp_high, 0.0, 1.0) * 0.25), _ab);
393 color = vec4(finalRGB, baseTex.a);