Refactored out creating the projection matrix.