X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Frouteui.vs;h=e824d4a8becfdc49db2fcb691230cff3035e3eb0;hb=HEAD;hp=def0bb61a18b05e72b640f54887cd0c869616767;hpb=60b0d8af679396c857f8c5f9a7a518b092a2f416;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/routeui.vs b/shaders/routeui.vs index def0bb6..e824d4a 100644 --- a/shaders/routeui.vs +++ b/shaders/routeui.vs @@ -1,6 +1,9 @@ layout (location=0) in vec2 a_co; +uniform vec4 uOffset; + void main() { - gl_Position = vec4(a_co*vec2(0.01,0.1),0.0,1.0); + vec2 vpos = a_co * uOffset.zw + uOffset.xy; + gl_Position = vec4(vpos,0.0,1.0); }