0.00
60.0 fps
Title:
Description:
#version 300 es
precision highp float;

// Welcome to OneShader!
//
// OneShader is a community for creative coding. We believe the joy 
// is in the craft. 
//
// ---------------------------------------------------------------
// A NOTE ON AI:
// Please do not publish code entirely generated by AI. 
// We want to see YOUR creativity, your mistakes, and your logic. 
// If you use AI to learn, try to rewrite the code yourself before 
// sharing, so others can learn from your human approach.
// ---------------------------------------------------------------
//
// API Reference: https://oneshader.net/syntax

uniform float iTime;
uniform vec2  iResolution;

// TRY THIS: Create a UI slider by uncommenting the line below:
// uniform float speed; // value=1, min=0, max=5, step=0.001

out vec4 fragColor;

void main() {
    vec2 q   = (2. * gl_FragCoord.xy - iResolution) / iResolution.y;

    // Note: If you enabled the 'speed' slider above, multiply iTime by speed!
    vec3 col = .5 + .5 * sin((vec3(normalize(q), length(q)) + iTime) * 6.283);

    fragColor = vec4(col, 1.);
}