Documentation / Node reference / tex nodes

tex/Layer

Lays one image over another.

Color

Lays the foreground over the background. position, anchor, scale and rotation place the foreground, and blendMode sets how the two mix. A mask on the third input sets where the foreground shows. With no background, the foreground sits on a transparent image of its own size.

Parameters

Name Type What it does
blendMode UInt8 NORMAL · ADD · SUBTRACT · MULTIPLY · SCREEN · OVERLAY · SOFT_LIGHT · DARKEN · LIGHTEN · DIFFERENCE · INSIDE · OUTSIDE · ATOP · XOR How the foreground mixes with the background.
opacity Float How much the foreground shows, from 0 to 1.
position Vector2 Where the anchor goes, from the top left.
anchor Vector2 Point of the foreground placed at position.
scale Float Size of the foreground. 1 is its own size.
rotation Float Turns the foreground around its anchor, in degrees.
sizeFrom UInt8 BACKGROUND · FOREGROUND · CUSTOM Where the result's size comes from.
size Vector2UInt Width and height of the result, in pixels.
amount Float Scales the mask, from 0 to 1.
maskChannel UInt8 LUMINANCE · ALPHA · RED · GREEN · BLUE Which value of the mask sets where the foreground shows.
invertMask Bool Show the foreground where the mask is black instead.

Examples

Scenes you can open in the editor that teach this node.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.