fix text positioning bug

pull/12/head
hYdos 2020-02-29 16:26:58 +10:00
parent 5775793a80
commit 8da1387bbc
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public class IngameHUD extends Screen
{
debugText = ginger3D.registerText("Loading...", 2, new Vector2f(0, 0), 1f, true, "debugInfo");
debugText.setBorderWidth(0.5f);
positionText = ginger3D.registerText("Loading...", 2, new Vector2f(5, 5), 1f, true, "debugInfo");
positionText = ginger3D.registerText("Loading...", 2, new Vector2f(0, -0.1f), 1f, true, "debugInfo");
positionText.setBorderWidth(0.5f);
}

View File

@ -67,6 +67,6 @@ public class TitleScreen extends Screen
public void close()
{
this.debugText.remove();
this.playButton.hide(this.elements);
this.playButton.hide(Litecraft.getInstance().data.guis);
}
}

View File

@ -9,7 +9,7 @@ uniform vec2 translation;
void main(void){
gl_Position = vec4(position, 0.0, 1.0);
gl_Position = vec4(position + translation, 0.0, 1.0);
pass_textureCoords = textureCoords;
}