80 float aLow = clamp(
amp_low, 0.0, 1.0);
81 float aMid = clamp(
amp_mid, 0.0, 1.0);
82 float aHigh = clamp(
amp_high, 0.0, 1.0);
83 float aPk = clamp(
amp_peak, 0.0, 1.0);
88 vec2 uv = 1.0 - abs(1.0 - 2.0 * tc);
89 float bassZoom = 1.0 + 1.5 * aLow;
90 uv = (uv - ctr) * bassZoom + ctr;
92 float zoom = 1.2 + 0.6 * aLow + 0.3 * sin(t * 0.3);
93 int iters = 4 + int(aLow * 4.0);
94 uv =
fractalFold(uv, zoom, t * (0.5 + aLow * 0.5), ctr, aspect, iters);
95 uv = 1.0 - abs(1.0 - 2.0 * fract(uv));
97 vec4 tex = texture(samp, uv);
98 tex.rgb *= 1.0 + aPk * 0.6;
99 tex.rgb = mix(tex.rgb, tex.rgb * vec3(1.0 + aLow * 0.4, 1.0 - aLow * 0.15, 1.0 + aHigh * 0.25), aPk);
vec2 rotateUV(vec2 uv, float angle, vec2 c, float aspect)
Evaluates rotateUV for this shader effect.