lerp VEX function

Performs bilinear interpolation between the values.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. float lerp(float value1, float value2, float amount)

  2. vector lerp(vector value1, vector value2, float amount)

  3. 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.