Fix position of speedmeter

Only need to get the texture
This commit is contained in:
Vincent Lejeune 2014-10-17 18:51:41 +02:00
parent ce7f017adf
commit 2f45266c6f

View File

@ -22,6 +22,9 @@ out vec4 color;
void main(void)
{
color = Color.zyxw;
gl_Position = vec4(Position, 1.) / vec4(screen, 1., 1.);
vec3 P = Position / vec3(screen, 1.);
P = 2. * P - 1.;
P.y *= -1;
gl_Position = vec4(P, 1.);
uv = Texcoord;
}