Out
Outputs areas of foreground that do not overlap with background.
Parameter Types
Parameter descriptions
ForegroundThe
color4foreground input.Frepresents the RGB component of this parameter.frepresents the alpha component of this parameter.BackgroundThe
color4background input.Brepresents the RGB component of this parameter.brepresents the alpha component of this parameter.MixThe weight of the blend operation. The higher the value of
Mix, the more apparent the effect of the blend operation. The default value is1. Values outside of the range0-1produce an undefined effect outside of the node’s intended function.
Discussion
The Out node determines its output using the alpha channels of the foreground and background inputs. The RGB component of the output is F*(1-b) and the alpha component of the output is f*(1-b). The visual effect of this node is that within the output, the node preserves the foreground values that don’t overlap with the background alpha. Below is a simple node graph that uses the Out node to blend a tile and rock texture:
[Image]
Below are the two original images, the image representation of the alpha of the background, and the resulting blended texture applied to a cube:
[Image]