lerp VEX function
Performs bilinear interpolation between the values.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float lerp(float value1, float value2, float amount) -
vector lerp(vector value1, vector value2, float amount) -
vector4 lerp(vector4 value1, vector4 value2, float amount)
Performs bilinear interpolation between the values. If the amount is outside the range 0 to 1, the values will be extrapolated linearly.