1
// Author:miccall
2
// Title:learn01
3
4
#ifdef GL_ES
5
precision mediump float;
6
#endif
7
8
uniform vec2 u_resolution;
9
uniform vec2 u_mouse;
10
uniform float u_time;
11
12
void main() {
13
    vec2 st = gl_FragCoord.xy/u_resolution.xy;
14
    st.x *= u_resolution.x/u_resolution.y;
15
16
    vec3 color = vec3(0.);
17
    color = vec3(st.x,st.y,abs(sin(u_time)));
18
19
    gl_FragColor = vec4(color,1.0);
20
}