Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Manage per eye projection and modelview camera setting.
Previously there was no difference between the left and right eye when updating the projection and modelview matrix into the camera, only the value of these matrices was different. To help futur work to compute all the camera matrices before rendering, these matrices are stored in a little struct named View in KX_Camera. This struct embed the projection and modelveiw matrix but also the frustum and some flag about the validity of some values. Because of this new organisation, the user can see in case of stereo the two projection from python using camera.projectionMatrix[Left/Right].
- Loading branch information