projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
angle limit constraint
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
routeui.h
diff --git
a/shaders/routeui.h
b/shaders/routeui.h
index eeb351a7d9f5fc6e9b2c7465c1c3e3ee25727d14..a909d17c3e148c5b2927a4019fbac20ae6fdad00 100644
(file)
--- a/
shaders/routeui.h
+++ b/
shaders/routeui.h
@@
-15,10
+15,7
@@
static struct vg_shader _shader_routeui = {
"\n"
"void main()\n"
"{\n"
"\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"
""},
" gl_Position = vec4(vpos,0.0,1.0);\n"
"}\n"
""},