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).

Node <"vec4">

The input color (vec4 with alpha)

Texture 

Mask texture (uses red channel, inverted)

Node <"vec2">

UV coordinates for mask sampling

FloatInput = 1

Mask strength

Node <"vec4">

Color with inverted mask applied to alpha