Mixer

Layers any number of textures on top of each other, each with its own opacity.

Outputs

NameTypeDescription
Texture OutputTextureThe layered result.

Inputs

NameTypeDescription
InputsTextureThe textures to layer. Connecting to the list adds an input at the end.

Parameters

NameTypeDescription
Texture TypeEnumThe channels of the output texture.Choices: R (u8), RG (u8), RGBA (u8)
Texture SizeVector 2 IntThe size of the output texture in pixels.

Inputs

One entry per connected input, numbered in the same order as the inputs.

NameTypeDescription
OpacityFloatHow strongly the input shows, from 0 for invisible to 1 for fully visible.

Mixer stacks any number of textures into one image. It works like layers in an image editor: the first input is the bottom layer, and every next input is drawn on top of it. How much of an input shows depends on its own transparency and on its opacity setting. The output starts fully transparent. With no inputs it stays empty, and any part that no input covers stays transparent.

Removing an input’s connection also removes its opacity setting. An opacity below 0 counts as 0, and one above 1 counts as 1.

Keywords: blend, composite, layer, stack, alpha