Rendering with FitViewPort Breaks Viewport
chelinho139 opened this issue · 1 comments
chelinho139 commented
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..
chelinho139 commented
i found a solution in the forums:
http://badlogicgames.com/forum/viewtopic.php?f=11&t=18317&p=84769&hilit=box2dlights#p84769