public void setProjection(double fovY, double windowWidth, double windowHeight, double zNear, double zFar) {
        this.fovY = fovY;
        this.width = windowWidth;
        this.height = windowHeight;
        this.zNear = zNear;
        this.zFar = zFar;
        projectionMatrix.setIdentity();
        perspective(projectionMatrix, fovY, windowWidth / windowHeight, zNear, zFar);
    }
Calculates a view matrix based on camera position, x rotation, and y rotation.
core/src/main/java/mrtjp/projectred/redui/PVMMatrix.java