OrbitCamera::~OrbitCamera() {}
-void OrbitCamera::set_orbit_params(float phi, float theta, float distance)
+void OrbitCamera::set_orbit_params(float theta, float phi, float distance)
{
this->phi = phi;
this->theta = theta;
Mat4 pmat = Mat4(
tmp/aspect, 0, 0, 0,
0, tmp, 0, 0,
- 0, 0, (f + n) / range, -1,
+ 0, 0, (f + n) / range, -1,
0, 0, 2 * n * f / range, 0
);