shaders/fence/scratch.frag

20 lines
327 B
GLSL
Raw Normal View History

2020-04-23 23:07:47 -07:00
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
void main() {
vec3 color = vec3(0);
vec2 st = (gl_FragCoord.xy-.5*u_resolution.xy)/u_resolution.y;
st *= u_time;
float m = .5 - abs(sin(st.x));
color += m;
gl_FragColor = vec4(color,1.0);
}