Kaiju Engine (issue #42) - Create perspective and orthographic cameras

5 months ago
2

Working perspective and orthographic camera code. This needed to add Ray and Frustum into a collision package, which also required helper functions and planes to be described. I also exposed Rad2Deg and Deg2Rad. Then I added the OPENGL tag to the build and debugging scripts. I then modified the shaders to have global data containing the camera matrices. Lastly I set the global data for the shader to the pre-calculated values from the camera code. There was a change to make the window shared memory into a pointer rather than embedded into the structure to fix a Go memory pinning issue that came up from the Renderer having pointer functions as well.

https://github.com/KaijuEngine/kaiju/pull/46

Loading comments...