Skip to main content
Version: 5.x

Nodes > Math > Common > Mix

Mix

Returns a value interpolated between A and B based on Ratio. A Ratio of 0 will return A, 1 will return B, and 0.5 will return halfway between the two values.

This is also known as linear interpolation, or lerp.

Inputs

NameTypeDescription
AfloatLower value (Ratio=0)
BfloatUpper value (Ratio=1)
RatiofloatHow far to interpolate between A and B (0-1)

Outputs

NameTypeDescription
mix( A, B, Ratio )floatInterpolated value
Was this page helpful?
Yes
No