Converting perspective projection to orthogonal projection
问题 I created this program where the user clicks the right click of the mouse and he gets a menu where he can choose to draw a cube or a sphere in a perspective projection I would like him to be able to change the perspective projection to orthogonal projection. I want the shapes to be placed in the same spot just with orthogonal projection. I want him to be able to do it by clicking "O" in the keyboard and go back to perspective by clicking "p". how do I mix the orthogonal projection in this