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
inputColor
Node<"vec4">
The input color (vec4 with alpha)
mask
Mask value (0-1)
Returns
Node<"vec4">
Color with masked alpha
Example
// Fade sprite by 50%alphaMaskValue(texture(tex, uv()), 0.5)