playing around
Community shader created in BLOKS Shader Studio.
Shader Preview Unavailable
This realtime shader may be too intensive for your current device or browser.
Shader Code
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
vec2 uv = fragCoord.xy / iResolution.xy;
vec2 p = uv * 2.0 - 1.0;
p.x *= iResolution.x / iResolution.y;
float t = iTime;
float accum = 0.0;
for(float i = 1.0; i < 6.0; i++)
{
vec2 q = p;
q += vec2(
sin(q.y * i + t),
cos(q.x * i - t)
) * 0.08;
accum += 0.02 / abs(length(q) - 0.3);
}
vec3 color = vec3(
accum * 0.1,
accum * 0.8,
accum * 0.6
);
fragColor = vec4(color, 1.0);
}
