# How does the multiply color node work?

How does multiply shade node work? I've found similar question, but in that case it's a "difference" parameter. What about multiply then? I've tried to look for it in Blender documentation, but didn't found any of formulas or good description.

• multiply is described here docs.blender.org/manual/en/latest/modeling/geometry_nodes/… or are you looking for something else? Jan 11 at 19:05
• @lemon I mean, there is a formula for color difference - Color = |Color1 - Color2| * Fac + Color1 * (1-Fac). But how it will look for multiply color node? Should I just replace minus with multiply, or it will look different? Jan 11 at 19:07

Multiply simply multiplies red of one image by red of the other image, green of one image by green of other image and blue of one image by blue of the other image.

Since color components are in range $$[0, 1]$$, multiplication always reduces the value.

Factor lerps between the A and the result of the above multiplication. These lerping is what Mix mode does.

Therefore Multiply with a Factor $$= x$$ is the same as Multiply with a Factor $$= 1$$ passed to Mix with a Factor $$= x$$:

The purpose of Distance → Compare is to show both upper Multiply, and lower Multiply + Mix are equivalent (same color result).

# Math Formula

The Multiply with Factor $$= 1$$ is simply $$A × B$$.

The Mix (lerping) is $$(1-f)A + fB$$, or as Marty Fouts puts it (link below), it's $$A$$ plus the difference between $$A$$ and $$B$$ multiplied by Factor: $$A+f(B−A)$$.

Therefore Multiply with Factor is: $$(1-f)A + fAB$$ or $$A + f(AB - A)$$.