Lerp

Blends between two numbers.

Node id math/lerp

The Lerp node (linear interpolation) outputs the number a fraction t of the way from a to b: t = 0 gives a, t = 1 gives b, and the default 0.5 gives their middle.

Parameters

NameTypeDefault
curveEasingCurve"linear"
modeEasingMode"in-out"

Inputs

NameTypeDefaultNotes
anumber0
bnumber1
tnumber0.5

Outputs

NameTypeNotes
resultnumber

Behaviour

  • Defaults. a defaults to 0, b to 1 and t to 0.5.
  • Easing parameters. Parameters curve (default linear) and mode (default in-out) allow non-linear easing directly on the node. When curve is linear, t is unclamped and extrapolates outside 0 to 1. When curve is set to a non-linear curve (such as cubic, bounce, or sine), t is clamped to 0 to 1 and transformed by the easing curve before blending.
  • Not clamped when linear. With curve = linear, t outside 0 to 1 continues the line past the ends: with a = 0 and b = 10, t = 1.5 gives 15 and t = -0.5 gives -5. Use Clamp on t or choose an easing curve to keep the result between a and b.
  • Unlike the object Lerp nodes. The Lerp nodes of the object types (such as Lerp Color or Lerp Point, on each type's page) do clamp t to 0 to 1.
© 2026 Wirepaint