shader test changes

This commit is contained in:
Harrison Deng 2017-06-07 00:21:25 -05:00
parent 79431a7fca
commit 0222ea00a7
2 changed files with 1 additions and 3 deletions

View File

@ -9,8 +9,5 @@ varying vec2 v_texCoords;
void main()
{
v_color = a_color;
v_color.a = v_color.a * (256.0/255.0);
v_texCoords = a_texCoord + 0;
gl_Position = u_projTrans * a_position;
}

View File

@ -108,6 +108,7 @@ public class MainMenu extends ScreenAdapter implements TransitionAdapter {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.act();
stage.getBatch().setShader(core.defaultShader);
stage.draw();
if (stage.getCamera().position.x != targetPosition.x || stage.getCamera().position.y != targetPosition.y) {
stage.getCamera().position.lerp(targetPosition, 0.25f);