|
|
Mix vector
The Mix family of nodes is used to blend or interpolate between the two input values. If the value coming from the node attached to the Mix controller input is 0 then the value of the Input node will be output. If the value coming from the Mix controller node is 1 then the value of the Input 2 node will be output. If the Mix controller value is somewhere between 0 and 1 then the output will be a blended combination of the two input values.
The inputs are mixed using linear interpolation according to the following formula:
Output = Input + Mix controller value x (Input 2 - Input)
Mix colour mixes colours on a component-wise basis. The Mix controller can be either a colour or a scalar
Output.red = Input.red and Input 2.red mixed by the Mix controller's red value Output.green = Input.green and Input 2.green mixed by the Mix controller's green value Output.blue = Input.blue and Input 2.blue mixed by the Mix controller's blue value
Mix vector mixes vectors on a component-wise basis, but the Mix controller value is always converted to a scalar if it is not already a scalar:
Output.x = Input.x and Input 2.x mixed by the Mix controller's scalar value Output.y = Input.y and Input 2.y mixed by the Mix controller's scalar value Output.z = Input.z and Input 2.z mixed by the Mix controller's scalar value
Settings:
Error conditions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|