\r
@Override\r
public void update (boolean updateFrustum) {\r
- projection.setToOrtho(zoom * -viewportWidth / 2, zoom * (viewportWidth / 2 - 1), zoom * -(viewportHeight / 2 - 1), zoom\r
+ projection.setToOrtho(zoom * -viewportWidth / 2, zoom * (viewportWidth / 2), zoom * -(viewportHeight / 2), zoom\r
* viewportHeight / 2, Math.abs(near), Math.abs(far));\r
view.setToLookAt(position, tmp.set(position).add(direction), up);\r
combined.set(projection);\r
}
@Override
+ public void resize (int width, int height) {
+ cam.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
+ }
+
+ @Override
public void render () {
Gdx.gl.glClearColor(1, 0, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);