So I was looking into adding lights and shadows in my game. So I found this repository https://github.com/jacobbrunson/BasicLighting/blob/master/src/Main.java
However this doesn’t work with libgdx’s OrthographicCamera. It’s just bound to screen dimensions. How do I apply the camera’s projection matrix?
This example does not use libGDX at all. It interfaces directly with OpenGL via LWJGL.
You could however still use libGDX’s OrthographicCamera by letting it do its update() and then gather its ‘combined’ Matrix4f and upload that to OpenGL via glLoadMatrixf() in that example.