fix text positioning bug
parent
5775793a80
commit
8da1387bbc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue