shaders/fence/art-of-code-example.frag

19 lines
324 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;
float m = smoothstep(0.05, 0.0, abs(st.x));
color += m;
gl_FragColor = vec4(color,1.0);
}