daanmichiels / igl-hr

Hyperbolic space on the Oculus Rift
3 stars 0 forks source link

Replace camera::use #4

Closed daanmichiels closed 9 years ago

daanmichiels commented 9 years ago

The camera should not bind the matrix to the OpenGL state. It should return the projection and view matrix separately, and the main loop should pass the projection matrix to the shader, as well as a premultiplied modelview matrix.

daanmichiels commented 9 years ago

Replaced use by _getprojection and _getview.