libgdx/box2dlights

Rendering with FitViewPort Breaks Viewport

chelinho139 opened this issue · 1 comments

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..