Go to: Related nodes. Attributes.

Blend Colors is a utility node that allows you to blend together two input colors or textures, using a third value to control the blend.

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 nameParentsClassificationMFn typeCompatible function sets
blendColorsnodeutility/color:drawdb/shader/operation/blendColorskBlendColorskBase
kNamedObject
kDependencyNode
kBlendColors

Related nodes

clamp, lightInfo, gammaCorrect, surfaceLuminance, contrast, luminance, rgbToHsv, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch

Attributes (14)

blender, color1, color1B, color1G, color1R, color2, color2B, color2G, color2R, output, outputB, outputG, outputR, renderPassMode

Long name (short name)TypeDefaultFlags
blender (b) float0.5outputinputconnectablestorablekeyable
Blender controls how much of each of the input colors is mixed into the final Output. As Blender increases, you see more of Color 1 and less of Color 2. As it decreases, you see more of Color 2 and less of Color 1.
color1 (c1) float31.0, 0.0, 0.0outputinputconnectablestorable
Color 1 is the first input color.
color1R (c1r) float0.0outputinputconnectablestorablekeyable
The red component of Color 1
color1G (c1g) float0.0outputinputconnectablestorablekeyable
The green component of Color 1
color1B (c1b) float0.0outputinputconnectablestorablekeyable
The blue component of Color 1
color2 (c2) float30.0, 0.0, 1.0outputinputconnectablestorable
Color 2 is the second input color.
color2R (c2r) float0.0outputinputconnectablestorablekeyable
The red component of Color 2
color2G (c2g) float0.0outputinputconnectablestorablekeyable
The green component of Color 2
color2B (c2b) float0.0outputinputconnectablestorablekeyable
The blue component of Color 2
renderPassMode (arp) enum1outputinputconnectablestorablekeyable
renderPassMode controls how the node affects material render passes.
output (op) float30.0, 0.0, 0.0outputconnectable
Output is the final blended color.
outputR (opr) float0.0outputconnectable
The X component of Output
outputG (opg) float0.0outputconnectable
The Y component of Output
outputB (opb) float0.0outputconnectable
The Z component of Output