Nodes > Math > Common > 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
Name | Type | Description |
---|---|---|
A | float | Lower value (Ratio=0) |
B | float | Upper value (Ratio=1) |
Ratio | float | How far to interpolate between A and B (0-1) |
Outputs
Name | Type | Description |
---|---|---|
mix( A, B, Ratio ) | float | Interpolated value |
Was this page helpful?