Fixed calculation of camera matrix.