Implementing Cube example, Fixed bug in PerspFovProj