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
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
maskTex
Section titled “maskTex”Mask texture (uses red channel, inverted)
maskUV
Section titled “maskUV”Node <"vec2">
UV coordinates for mask sampling
strength?
Section titled “strength?”FloatInput = 1
Mask strength
Returns
Section titled “Returns”Node <"vec4">
Color with inverted mask applied to alpha