Merge pull request #23 from nmhmap/patch-1

fixed functionality of utils.lerp()
This commit is contained in:
Colby Klein 2017-05-19 09:35:01 -07:00 committed by GitHub
commit f6ad9335cc

View File

@ -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