You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
301 B
16 lines
301 B
#ifdef GL_ES
|
|
precision mediump float;
|
|
#endif
|
|
|
|
uniform float time;
|
|
uniform vec2 resolution;
|
|
|
|
void main() {
|
|
vec2 st = gl_FragCoord.xy/resolution.xy;
|
|
st.x *= resolution.x/resolution.y;
|
|
|
|
vec3 color = vec3(0.);
|
|
color = vec3(st.x,st.y,abs(sin(time)));
|
|
|
|
gl_FragColor = vec4(color,1.0);
|
|
}
|