mathx.random_lerp calls mathx.lerp instead of math.lerp so it works without exported globals

fixes #41
This commit is contained in:
Max Cahill 2021-11-19 15:28:54 +11:00
parent 6ce0dfa523
commit 4460a94933

View File

@ -70,7 +70,7 @@ end
--bilinear interpolation between 4 samples --bilinear interpolation between 4 samples
function mathx.bilerp(a, b, c, d, u, v) function mathx.bilerp(a, b, c, d, u, v)
return math.lerp( return mathx.lerp(
math.lerp(a, b, u), math.lerp(a, b, u),
math.lerp(c, d, u), math.lerp(c, d, u),
v v