Closed chelinho139 closed 9 years ago
When ever you use fit viewport the method RayHandler.render() streches the whole viewport breaking the objective.
Some code: cam = new OrthographicCamera(); viewport = new FitViewport(800,600, cam); viewport.apply(); cam.zoom=CAMERA_ZOOM; ....
in render method:
rayHandler.setCombinedMatrix(cam); rayHandler.update(); rayHandler.render();
I know it has probably something to do with the shader, that ends up streching the whole viewport.
Please we need this fix..
i found a solution in the forums: http://badlogicgames.com/forum/viewtopic.php?f=11&t=18317&p=84769&hilit=box2dlights#p84769
When ever you use fit viewport the method RayHandler.render() streches the whole viewport breaking the objective.
Some code: cam = new OrthographicCamera(); viewport = new FitViewport(800,600, cam); viewport.apply(); cam.zoom=CAMERA_ZOOM; ....
in render method:
I know it has probably something to do with the shader, that ends up streching the whole viewport.
Please we need this fix..