projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ahdouaeaiwe
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
routeui.vs
diff --git
a/shaders/routeui.vs
b/shaders/routeui.vs
index def0bb61a18b05e72b640f54887cd0c869616767..ba5cbce9bf74340b199c70915c8d9e264d97df17 100644
(file)
--- a/
shaders/routeui.vs
+++ b/
shaders/routeui.vs
@@
-1,6
+1,12
@@
layout (location=0) in vec2 a_co;
layout (location=0) in vec2 a_co;
+uniform vec4 uOffset;
+
void main()
{
void main()
{
- gl_Position = vec4(a_co*vec2(0.01,0.1),0.0,1.0);
+ float fbarx = (a_co.x+uOffset.x) * uOffset.z;
+ float fbary = a_co.y*uOffset.w + uOffset.y;
+
+ vec2 vpos = vec2( fbarx, fbary );
+ gl_Position = vec4(vpos,0.0,1.0);
}
}