alphaMaskValue
alphaMaskValue(
inputColor,mask):Node<"vec4">
Defined in: packages/nodes/src/alpha/alphaMask.ts:53
Multiply alpha by a mask value (single float instead of texture).
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
Mask value (0-1)
Returns
Section titled “Returns”Node <"vec4">
Color with masked alpha
Example
Section titled “Example”// Fade sprite by 50%alphaMaskValue(texture(tex, uv()), 0.5)