blob: 4c4b4350cb0c87bed7558d1d685ab39e04a0a927 [file] [log] [blame]
Skyler Grey3eef73c2022-05-25 10:41:04 +01001#extension GL_OES_standard_derivatives : enable
2
3precision highp float;
4
5uniform float time;
6uniform vec2 mouse;
7uniform vec2 resolution;
8
9vec3 white = vec3(1, 1, 1);
10vec3 amaranth_pink = vec3(0.945, 0.612, 0.733);
11vec3 maya_blue = vec3(0.298, 0.624, 0.886);
12
13void main( void ) {
14
15 vec2 position = ( gl_FragCoord.xy / resolution.xy );
16
17 vec3 color = white;
18
19 if (sin(position.x + time / 10.0) / 2.0 - position.y + 0.7 < 0.0) {
20 color = amaranth_pink;
21 } else if (sin(position.x + time / 7.0 + 20.0) / 2.0 - position.y + 0.7 < 0.0) {
22 color = maya_blue;
23 }
24
25 gl_FragColor = vec4(color, 1.0);
26
27}