Go to: Related nodes. Attributes.

This node outputs the linear interpolation between the 2 input values. o = w * i1 + (1-w) * i2.

Node nameParentsClassificationMFn typeCompatible function sets
lerpnodemath/operation:utility/scalar:drawdb/shader/operation/lerpkLinearInterpolationkBase
kNamedObject
kDependencyNode
kLinearInterpolation

Related nodes

distanceBetween, inverseLerp, lerpDL

Attributes (4)

input1, input2, output, weight

Long name (short name)TypeDefaultFlags
input1 (i1) double0.0outputinputconnectablestorablekeyable
A double input
input2 (i2) double0.0outputinputconnectablestorablekeyable
A double input
output (o) double0.0outputconnectable
The linear interpolation of the 2 inputs
weight (w) double0.0outputinputconnectablestorablekeyable
The weight of input 1.