Skip to content

Merge

Merge
Composite

Combines two images with Porter-Duff coverage operators (Over, In, Out, Stencil, Plus, and more), the alpha-driven counterpart to Composite’s color blending.

Eight panels on the transparency checkerboard: Input A, an orange circle up and left; Input B, a teal circle down and right; then Merge's operations on them: Over, orange on top of teal; Under, teal on top; In, only the orange lens where they overlap; Out, the orange circle with the overlap cut away; Atop, the teal circle with orange over the overlap; Xor, both circles with the overlap cut out

Merge combines A (foreground) and B (background) by how their coverage (alpha) interacts, not how their colors blend. Composite and Layer answer “how do these colors mix”; Merge answers “which pixels survive, and whose shape wins”. Nine operators cover the classic Porter-Duff set: Over, Under, In, Mask, Out, Stencil, Atop, Xor, and Plus.

Use it for knock-outs, stencils, and silhouettes: punch a logo’s shape out of a texture with Stencil, cut a texture to a character’s silhouette with In, or slide a fill behind existing artwork with Under. Plus is a linear add, done in premultiplied form (Merge multiplies A and B by their alpha first), the way to sum light passes such as glows or Relight’s specular output.

Divide and Multiply break the coverage rule: they do plain per-channel arithmetic on straight color. Use them to unpack or repack a render pass, such as dividing a lit render by its albedo to recover the lighting, then multiplying a retouched albedo back in.

Merge takes texture sets and libraries on A and B, so a whole material goes over another with the node you already know. The two sets combine through the same compositor Texture Layer uses: the operator decides coverage from the two Opacity planes, and every map follows it, Base Color, Roughness, and the other maps as the picture path would, the Normal blended as surfaces, and the Height taken from the set on top where it covers. Over is exactly a two-row Texture Layer. A picture on either input is read as a Base Color only set, and the result takes A’s name and keeps B’s place on a trim sheet.

Plus, Divide, and Multiply have no meaning for coverage between surfaces, so over a set they are grayed with the reason and the node combines Over, with a note saying so.

Merge is order based: one set over another. For a deep stack of materials, or one where height decides which surface shows, use Texture Layer, which composes the stack in one pass and is markedly faster than a chain of Merges. To lay a masked material over another, cut its Opacity with Mask Apply first, then Merge Over.

Pins

AImage
InputRequired
BImage
InputRequired
ImagePixels or Texture
Output

Merge

OperationChoice
Default: Over

How the coverage (alpha) of A and B combines. Composite and Layer set how colors blend instead.

Divide and Multiply are the exception: plain per-channel arithmetic on straight color, not a coverage combine.

  • OverA over B, the standard composite: A wins where they overlap, B shows through A's transparency.
  • UnderA slips behind B: B keeps priority and A fills only where B is transparent.
  • InKeeps A only where B has coverage, cutting A to B's silhouette. B's own pixels are discarded.
  • MaskKeeps B only where A has coverage: A acts as the cut shape for B.
  • OutKeeps A only where B is empty, punching B's silhouette out of A.
  • StencilKeeps B only where A is empty, punching A's silhouette out of B. The classic knock-out.
  • AtopA shown only where B has coverage, composited over the rest of B: A takes on B's silhouette.
  • XorKeeps both images, but only where they do not overlap.
  • PlusAdds A and B together, a premultiplied linear add for glows, flashes, and summed light passes.
  • DivideDivides A by B channel by channel on straight color, ignoring coverage: pulls one multiplied pass back out of another, such as recovering lighting by dividing a lit render by its albedo.
  • MultiplyMultiplies A and B channel by channel on straight color, ignoring coverage: repacks a light or albedo pass onto its base, the inverse of Divide.
MixNumber
Default: 1.00 Range: 0.00–1.00

Dissolves between the untouched B input (0) and the full merge result (1), dialing any operator back without changing the A branch

  • Wire straight-alpha images in as they are, Plus included: Merge premultiplies A and B itself, so a Premult before it darkens soft edges twice. A source that arrived premultiplied (such as a render saved premultiplied as a TGA) goes through Unpremult first.
  • Pull Mix below 1 to dial any operator back without touching the A branch.