projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed terrain tiles generation
[demo]
/
src
/
camera.cc
diff --git
a/src/camera.cc
b/src/camera.cc
index
0f7773e
..
73980b8
100644
(file)
--- a/
src/camera.cc
+++ b/
src/camera.cc
@@
-20,7
+20,7
@@
OrbitCamera::OrbitCamera()
OrbitCamera::~OrbitCamera() {}
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;
{
this->phi = phi;
this->theta = theta;
@@
-50,7
+50,7
@@
Mat4 calc_projection_matrix(float fov_deg, float aspect, float n, float f)
Mat4 pmat = Mat4(
tmp/aspect, 0, 0, 0,
0, tmp, 0, 0,
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
);
0, 0, 2 * n * f / range, 0
);