2022-01-02 19:28:16 -05:00
|
|
|
/* vim: set ft=c: */
|
|
|
|
|
|
|
|
/* <https://www.shadertoy.com/new> */
|
|
|
|
|
|
|
|
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
|
// Normalized pixel coordinates (from 0 to 1)
|
2022-01-09 23:37:48 -05:00
|
|
|
vec2 uv = TexCoords; // fragCoord / iResolution.xy;
|
|
|
|
// vec2 uv = fragCoord / iResolution.xy;
|
2022-01-02 19:28:16 -05:00
|
|
|
|
|
|
|
// Time varying pixel color
|
2022-01-09 23:37:48 -05:00
|
|
|
vec3 col = 0.5 + 0.5 * cos(iTime + fract (1.5 * (0.5 - uv.xyx) / (0.5 - uv.yxy) + iTime) + vec3(0, 2, 4));
|
2022-01-02 19:28:16 -05:00
|
|
|
|
|
|
|
// Output to screen
|
|
|
|
fragColor = vec4(col, 1.0);
|
|
|
|
}
|