nkOpLerp
- Last UpdatedJan 24, 2023
- 1 minute read
The nkOpLerp node performs a linear interpolation between input1 and input2.
Linear interpolation is based on the following formula: x*(1-s) + y*s
This can also be written as x + s(y-x) where where input1 is x, input2 is y, and amount is s.
Parameters
The amount is a float value.
Limits
Size: [1..4]
Input1 and input2 must have the same value as size.
Code Example
This is a code example for nkOpLerp.
<nkOpLerp name="nNodeName" size="3" input1="1 1 1" input2="2 2 2" amount="0.3"/>