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 ID | Type |
A | RenderTexture |
B | RenderTexture |
Mask | RenderTexture |
Invert | bool |
Output ports
| Port ID | Type |
Out | RenderTexture |
Scriptable members
| Path | Type |
invertInput | bool |
currentInvert | bool |
Synapse Apps (scripting)
await synapse.modules.create({ type: "MaskMix" })