blob: a3349e361cd7d6fb25554412c9be6154e2a646ec [file] [log] [blame]
Skyler Greyf2c55ae2022-11-05 17:48:02 +00001uniform float time;
2uniform vec2 resolution;
3
Skyler Greyc693ffa2023-01-26 00:41:20 +00004vec3 amaranthPink = vec3(241.0, 156.0, 187.0);
5vec3 mayaBlue = vec3(115.0, 194.0, 251.0);
6
Skyler Greyf2c55ae2022-11-05 17:48:02 +00007void main( void ) {
8
9 float t = time / 50.0;
10 vec2 position = ( gl_FragCoord.xy / resolution.xy );
11
Skyler Greyc693ffa2023-01-26 00:41:20 +000012 vec3 color = vec3(0.0, 0.0, 0.0);
Skyler Greyf2c55ae2022-11-05 17:48:02 +000013
Skyler Greyc693ffa2023-01-26 00:41:20 +000014 color += ((sin(t + position.y) + 1.0) * amaranthPink) / 255.0 / 2.0;
15 color += ((sin(-t + position.x) + 1.0) * mayaBlue) / 255.0 / 2.0;
16
17 /* color.r += sin(t + position.x + position.y) * amaranthPink.r / 255.0; */
18 /* color.g += cos(t + position.x - position.y) * amaranthPink.g / 255.0; */
19 /* color.b += sin(-t + position.x) * amaranthPink.b / 255.0; */
20
21 gl_FragColor = vec4( color / 0.8, 1.0 );
Skyler Greyf2c55ae2022-11-05 17:48:02 +000022
23}