Mask Mix

Read with AI
All docs in one file (llms-full.txt)
MaskMix #Composite #Node
Mask Mix

Outputs lerp(A, B, mask), using the luminance of Mask directly as the blend ratio. Where the mask is black you get A, where it is white you get B, and in between they mix by that ratio, so feeding in a gradient mask gives a transition with no visible seam.

  • Luminance is computed on a perceived-brightness basis and confined to 0-1
  • Invert inverts the mask (1 - mask)
  • Unconnected inputs are treated as a black texture
  • The output resolution is based on A, then B if there is no A, then Mask if there is neither. If all three are unconnected, the output is cleared to black

Input ports

Port IDType
ARenderTexture
BRenderTexture
MaskRenderTexture
Invertbool

Output ports

Port IDType
OutRenderTexture

Scriptable members

PathType
invertInputbool
currentInvertbool

Synapse Apps (scripting)

await synapse.modules.create({ type: "MaskMix" })