Skyler Grey | f2c55ae | 2022-11-05 17:48:02 +0000 | [diff] [blame] | 1 | uniform float time; |
| 2 | uniform vec2 resolution; |
| 3 | |
Skyler Grey | c693ffa | 2023-01-26 00:41:20 +0000 | [diff] [blame] | 4 | vec3 amaranthPink = vec3(241.0, 156.0, 187.0); |
| 5 | vec3 mayaBlue = vec3(115.0, 194.0, 251.0); |
| 6 | |
Skyler Grey | f2c55ae | 2022-11-05 17:48:02 +0000 | [diff] [blame] | 7 | void main( void ) { |
| 8 | |
| 9 | float t = time / 50.0; |
| 10 | vec2 position = ( gl_FragCoord.xy / resolution.xy ); |
| 11 | |
Skyler Grey | c693ffa | 2023-01-26 00:41:20 +0000 | [diff] [blame] | 12 | vec3 color = vec3(0.0, 0.0, 0.0); |
Skyler Grey | f2c55ae | 2022-11-05 17:48:02 +0000 | [diff] [blame] | 13 | |
Skyler Grey | c693ffa | 2023-01-26 00:41:20 +0000 | [diff] [blame] | 14 | 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 Grey | f2c55ae | 2022-11-05 17:48:02 +0000 | [diff] [blame] | 22 | |
| 23 | } |