X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Frouteui.h;h=a909d17c3e148c5b2927a4019fbac20ae6fdad00;hb=bdac014448b6ec968fe645f1581f321144f07dba;hp=eeb351a7d9f5fc6e9b2c7465c1c3e3ee25727d14;hpb=4f4458d229e40a852708319861224b7cc48ad0b9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/routeui.h b/shaders/routeui.h index eeb351a..a909d17 100644 --- a/shaders/routeui.h +++ b/shaders/routeui.h @@ -15,10 +15,7 @@ static struct vg_shader _shader_routeui = { "\n" "void main()\n" "{\n" -" float fbarx = (a_co.x+uOffset.x) * uOffset.z;\n" -" float fbary = a_co.y*uOffset.w + uOffset.y;\n" -"\n" -" vec2 vpos = vec2( fbarx, fbary );\n" +" vec2 vpos = a_co * uOffset.zw + uOffset.xy;\n" " gl_Position = vec4(vpos,0.0,1.0);\n" "}\n" ""},