Stack Mixer

Read with AI
All docs in one file (llms-full.txt)
AppStackMixer #Composite #Node
Stack Mixer

A layer stack in which Texture 1 is the bottom and Texture 8 is the top. Every frame it starts over from a transparent state and stacks, from the bottom up, only the slots that are connected and have an opacity greater than 0.

  • opacity1-opacity8 — clamped to 0-1, default 1. It is multiplied into the source’s own alpha before compositing, so the transparent parts of an upper layer never erase what is below
  • blend1-blend8 — 0 = Normal (default) / 1 = Add / 2 = Multiply / 3 = Screen
  • Only the opacity of Op 1-8 is exposed in the node UI. Blend modes are set from a script
  • The output is fixed at the global resolution at startup (it does not follow the resolution of the inputs)

Slots with an opacity of 0 skip compositing altogether. On a frame where not a single slot is active, the output is cleared to transparent.

Input ports

Port IDType
Texture 1RenderTexture
Texture 2RenderTexture
Texture 3RenderTexture
Texture 4RenderTexture
Texture 5RenderTexture
Texture 6RenderTexture
Texture 7RenderTexture
Texture 8RenderTexture

Output ports

Port IDType
OutRenderTexture

Scriptable members

PathType
opacity1float
opacity2float
opacity3float
opacity4float
opacity5float
opacity6float
opacity7float
opacity8float
blend1int
blend2int
blend3int
blend4int
blend5int
blend6int
blend7int
blend8int

Synapse Apps (scripting)

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

Pages linking here

Also referenced from