Skip to content

Nodes · Comp

Merge

Compv2core

Overview

The node you will use most. B is the background and decides the format; A is the foreground. Twenty-three operations cover the Porter–Duff coverage set, the arithmetic set, and the tone set.

How to

  1. Wire the background to B, the foreground to A.
  2. Choose operationover unless you know otherwise.
  3. Stack more foregrounds on A2A8 rather than chaining Merges when they share a background.

Inputs

InputWhat it takes
Bthe background — **B decides the format**
Athe foreground, composited over B
A2
A3
A4
A5
A6
A7
A8
masklimits the effect to this matte — the engine's universal mask slot, applied for every node that declares it

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
operationChoiceoverHow A combines with B: over (normal comp), plus, screen, multiply, minus, max/min, and the rest of the Porter–Duff family.
mixFloat1Dissolves the whole merge back toward plain B. 0 = B untouched, 1 = the full operation.
bboxChoiceunionWhich data window the result keeps: union (default), intersection, or one side.

Known edges

Merge never resamples. An A of a different size composites pixel for pixel; if you wanted it scaled, that is a Resize.