From 7575521e4de240a5eff5243977e8abf1afbb7047 Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Tue, 22 Apr 2014 16:35:17 +0200 Subject: [PATCH] texture on HUD is now drawn correctly --- shaders/ui/fragment.shader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/ui/fragment.shader b/shaders/ui/fragment.shader index 9153586..2b4d160 100644 --- a/shaders/ui/fragment.shader +++ b/shaders/ui/fragment.shader @@ -6,6 +6,6 @@ varying vec2 texcoord; void main() { vec4 map = texture2D(tex[0], texcoord); - vec4 hud = texture2D(tex[1], texcoord); + vec4 hud = texture2D(tex[1], vec2(texcoord.x,-texcoord.y)); gl_FragColor = vec4(mix(map.rgb,hud.rgb,hud.a),1.0); -} \ No newline at end of file +}