Merge pull request #23 from nmhmap/patch-1
fixed functionality of utils.lerp()
This commit is contained in:
commit
f6ad9335cc
@ -74,7 +74,7 @@ end
|
||||
-- @param progress (0-1)
|
||||
-- @return number
|
||||
function utils.lerp(low, high, progress)
|
||||
return ((high - low) + low) * progress
|
||||
return (1 - progress) * low + progress * high
|
||||
end
|
||||
|
||||
--- Exponential decay
|
||||
|
Loading…
x
Reference in New Issue
Block a user