Unity Products:Amplify Shader Editor/Weighted Blend
Weighted Blend Node
The Weighted Blend node outputs the result of an average sum of each one of its Layer values multiplied by their respective Weights. The amount of available layers is determined by the amount of channels given by the connection data type on the weights input.
P.e. a Vector4 is connected to the Weights Input, input ports Layer 1 through 4 will be made available and the resulting value will be ( Weights.x*Layer1 + Weights.y*Layer2 +Weights.z*Layer3 +Weights.w*Layer4 )/ (Weights.x + Weights.y + Weights.z + Weights.w ).
If Layers are of different types and have different channel amounts then a cast is done for each to match the one with the most amount of channels.
|Node Parameter||Description||Default Value|
|Weights|| Weight values to be applied at each layer. Number of channels on this data type determines the amount of available layers.
Only visible if the respective input port is not connected.
|Layer #||Layer value to blend. Only visible if the respective input port is not connected.||0|
|Weights||Weight values to be applied at each layer. Number of channels on this data type determines the amount of available layers.||Float |
|Layer #||Layer value to blend.||Float |