x
11
1
// Getting started? Try the tutorial: https://docs.smoothstep.io/tutorial/
2
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
3
// Compute coordinates that range from x = 0 to 1 and y = 0 to 1.
4
vec2 uv = fragCoord / iResolution.xy;
5
6
// Compute a color that varies with uv.x, uv.y and iTime.
7
vec3 col = 0.5 + 0.5 * cos(iTime + uv.xyx + vec3(0, 2, 4));
8
9
// Output the colour for this pixel.
10
fragColor = vec4(col, 1.0);
11
}
1264×1264px
0