mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user