texture on HUD is now drawn correctly
This commit is contained in:
parent
a1389ba524
commit
7575521e4d
@ -6,6 +6,6 @@ varying vec2 texcoord;
|
|||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 map = texture2D(tex[0], texcoord);
|
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);
|
gl_FragColor = vec4(mix(map.rgb,hud.rgb,hud.a),1.0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user