Go to: Related nodes. Attributes.
The color of the output is determined by the Blender attribute, which can range from 0 to 1. When Blender is 1, the Output is set to Color 1. When Blender is 0, Output is set to Color 2. When Blender is 0.5, Output is an equal mix of the two colors.
By applying a texture map to Blender (say, an image of white text on a black background) you can create a shader that uses Color 1 for the text, and Color 2 for the background.
Here is the formula used for color blending:
In the table below, important attributes have their names listed in bold in the description column.
This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
blendColors | dependNode | utility/color | kBlendColors | kBase kNamedObject kDependencyNode kBlendColors |
clamp, lightInfo, gammaCorrect, surfaceLuminance, contrast, luminance, rgbToHsv, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch
blender, color1, color1B, color1G, color1R, color2, color2B, color2G, color2R, output, outputB, outputG, outputR
Long name (short name) | Type | Default | Flags | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
blender
(b )
| float | 0.5 | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
color1
(c1 )
| float3 | 1.0, 0.0, 0.0 | ![]() ![]() ![]() ![]() | ||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
color2
(c2 )
| float3 | 0.0, 0.0, 1.0 | ![]() ![]() ![]() ![]() | ||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
output
(op )
| float3 | 0.0, 0.0, 0.0 | ![]() ![]() | ||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|