Forgot staged files

This commit is contained in:
Иван Грачёв
2021-06-06 21:57:41 +05:00
parent bacc7c617f
commit e893f7fcb2
4 changed files with 230 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
function lerpColor(t, from, to)
local clampedT = math.clamp(t, 0, 1)
local outColor = Color(0, 0, 0, 0)
outColor.r = math.lerp(t, from.r, to.r)
outColor.g = math.lerp(t, from.g, to.g)
outColor.b = math.lerp(t, from.b, to.b)
outColor.a = math.lerp(t, from.a, to.a)
return outColor
end