Shader Playground

Create and experiment with GLSL fragment shaders

Preview
Patterns
Time: 0.00s
Parameters
Adjust the parameters to modify the shader in real time
1.00
0.020
8.0
1.0
0.00
0.00
GLSL Shader
Edit the shader code to see changes in real time
void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = (fragCoord * 2.0 - iResolution.xy) / iResolution.y; float d = length(uv); vec3 col = vec3(1.0, 2.0, 3.0); d = sin(d*iScale + iTime)/8.; d = abs(d); d = iIntensity / d; col *= d * iColorMultiplier; fragColor = vec4(col, 1.0); }