97 vec4 K=vec4(1.0,2.0/3.0,1.0/3.0,3.0);
98 vec3 p=abs(fract(c.xxx+K.xyz)*6.0-K.www);
99 return c.z*mix(K.xxx,clamp(p-K.xxx,0.0,1.0),c.y);
159 vec2 ar=vec2(aspect,1.0);
163 vec4 baseTex=texture(samp, tc);
165 float seg=mix(5.0, 12.0, 0.5+0.5*sin(
time_f*0.35));
169 float foldZoom=1.35 + (0.45 +
amp_low * 0.4)*sin(
time_f*0.45) + mouseAmp*0.25;
174 float base=1.72 + 0.2*sin(
time_f*0.2);
176 vec2 zp1=
logPolarWrap(kUV+0.003*vec2(1.0,0.0), m, ar, tz+0.08, base);
177 vec2 zp2=
logPolarWrap(kUV+0.003*vec2(0.0,1.0), m, ar, tz+0.16, base);
183 vec4 s0=texture(samp, zpw0);
184 vec4 s1=texture(samp, zpw1);
185 vec4
s2=texture(samp, zpw2);
187 vec3 chroma=vec3(s0.r, s1.g,
s2.b);
189 float ring=sin(10.0*length((kUV-m)*ar)-
time_f*3.0)*0.5+0.5;
190 float swirl=sin(6.2831853*(zpw0.x+zpw0.y)+
time_f*1.4)*0.5+0.5;
191 float mask=smoothstep(0.0,1.0,ring*0.6+
swirl*0.4);
193 vec3 hsv=vec3(fract(
time_f*0.07 + ring*0.25 +
swirl*0.25), 0.8, 0.9);
197 vec4 kaleidoTex=vec4(
kaleido,1.0);
199 float blendFactor=0.55 + 0.15*sin(
time_f*0.33);
200 vec4 mixA = mix(kaleidoTex, baseTex, blendFactor*(0.6+0.4*mask));
202 vec3 pulse = 0.5 + 0.5*sin(vec3(1.7,2.3,3.1)*
time_f + (zpw0.xyx+zpw0.yxx)*9.0);
203 vec4 glow = vec4(mixA.rgb * pulse, 1.0);
208 vec4 t = texture(samp, tc);
209 vec4 outc = mod2 * t * (0.7 + 0.3*mask);
211 outc.rgb = clamp(outc.rgb, 0.08, 0.92);
212 color = vec4(outc.rgb, 1.0);
215 float _ab = clamp(
amp_peak, 0.0, 1.0);
216 float _abass = clamp(
amp_low, 0.0, 1.0);
217 color.rgb *= 1.0 + _ab * 0.6;
218 color.rgb = mix(color.rgb, color.rgb * vec3(1.0 + _abass * 0.3, 1.0 - _abass * 0.15, 1.0 + clamp(
amp_high, 0.0, 1.0) * 0.25), _ab);
vec2 rotateUV(vec2 uv, float angle, vec2 c, float aspect)
Evaluates rotateUV for this shader effect.
vec2 reflectUV(vec2 uv, float segments, vec2 c, float aspect)
Evaluates reflectUV for this shader effect.
vec2 fold(vec2 uv, float zoom, float t, vec2 c, float aspect)
Evaluates fold for this shader effect.
vec2 logPolarWrap(vec2 uv, vec2 c, vec2 ar, float tz, float base)
Evaluates logPolarWrap for this shader effect.