We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d12208 commit d660e0fCopy full SHA for d660e0f
orthographic/camera.lua
@@ -104,6 +104,7 @@ end
104
-- return vmath.lerp(1 - math.pow(t, dt), v1, v2)
105
-- https://www.gamasutra.com/blogs/ScottLembcke/20180404/316046/Improved_Lerp_Smoothing.php
106
local function lerp_with_dt(t, dt, v1, v2)
107
+ if dt == 0 then return vmath.lerp(t, v1, v2) end
108
local rate = UPDATE_FREQUENCY * math.log10(1 - t)
109
return vmath.lerp(1 - math.pow(10, rate * dt), v1, v2)
110
--return vmath.lerp(t, v1, v2)
0 commit comments