hello_world

This commit is contained in:
2024-04-25 15:19:54 +02:00
parent 6c1bf2e203
commit 3cc008621f
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifdef GL_ES
precision mediump float;
#endif
uniform float u_time;
vec4 col() {
float r = abs(sin(u_time));
float g = abs(cos(u_time/2.0));
float b = abs(tan(u_time/3.0));
return vec4(r, g, b, 1.0);
}
void main() {
gl_FragColor = vec4(col());
}