Closed MonstrousSoftware closed 4 months ago
Never mind. It's probably because my camera projection matrix is degenerate. I suspect because I'm setting camera.up to Vector3.Y regardless of the camera direction in order to keep the camera upright. If the player is looking upwards, the matrix could become singular (direction and up being equal) and hence non-invertable.
I see that there was a recent update to the skybox. I now get sporadic exceptions when moving around a lot, maybe after a few minutes of moving and rotating the view. I've not been able to reproduce this in debug mode, so I don't know the offending matrix value. Using LWJGL3 backend. This is with version 2.2.0 and 2.2.1.