I have:
shapeRenderer.setProjectionMatrix(stage.getViewport().getCamera().combined);
And I tried to do the following in render()
:
shapeRenderer.rect(0, 0, stage.getViewport().getScreenWidth(), stage.getViewport.getScreenHeight());
Which full-screens the ShapeRenderer
when I first run my project, but as soon as I resize the window, the rectangle starts to change size and go off-screen. I'm using a FitViewport
on my Stage
, is there any way to make the ShapeRenderer
always be full screen?