ahdouaeaiwe
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / routeui.vs
1 layout (location=0) in vec2 a_co;
2
3 uniform vec4 uOffset;
4
5 void main()
6 {
7 float fbarx = (a_co.x+uOffset.x) * uOffset.z;
8 float fbary = a_co.y*uOffset.w + uOffset.y;
9
10 vec2 vpos = vec2( fbarx, fbary );
11 gl_Position = vec4(vpos,0.0,1.0);
12 }