Skip to content

alphaMaskInvert

alphaMaskInvert(inputColor, maskTex, maskUV, strength): Node<"vec4">

Defined in: packages/nodes/src/alpha/alphaMask.ts:68

Invert mask and apply to alpha (areas with high mask value become transparent).

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

maskTex

Texture

Mask texture (uses red channel, inverted)

maskUV

Node<"vec2">

UV coordinates for mask sampling

strength

FloatInput = 1

Mask strength

Returns

Node<"vec4">

Color with inverted mask applied to alpha