This commit is contained in:
Branimir Karadžić
2017-12-02 18:15:31 -08:00
parent 90ef8970cc
commit 547d1d2b11
15 changed files with 75 additions and 65 deletions

View File

@@ -116,7 +116,7 @@ struct Camera
bx::vec3ToLatLong(&ll[0], &ll[1], toPosNorm);
ll[0] += consume[0];
ll[1] -= consume[1];
ll[1] = bx::fclamp(ll[1], 0.02f, 0.98f);
ll[1] = bx::clamp(ll[1], 0.02f, 0.98f);
float tmp[3];
bx::vec3FromLatLong(tmp, ll[0], ll[1]);
@@ -136,7 +136,7 @@ struct Camera
void update(float _dt)
{
const float amount = bx::fmin(_dt/0.12f, 1.0f);
const float amount = bx::min(_dt/0.12f, 1.0f);
consumeOrbit(amount);