Canvas
Editor
Sign in to save and manage your shaders
Sign In / Register
Current
Untitled
(not saved)
Saved
Fragment Shader (GLSL)
Tip: drag the bottom-right corner to resize the editor.
1
2
3
4
5
6
7
8
9
10
precision mediump float; uniform float u_time; uniform vec2 u_resolution; void main() { vec2 uv = gl_FragCoord.xy / u_resolution.xy; vec3 color = 0.5 + 0.5 * cos(u_time + uv.xyx + vec3(0, 2, 4)); gl_FragColor = vec4(color, 1.0); }
Compile & Run Shader