alphaTestOpaque
alphaTestOpaque(
inputColor,threshold):Node<"vec4">
Defined in: packages/nodes/src/alpha/alphaTest.ts:39
Discard pixels with alpha below threshold and set remaining alpha to 1. Creates a hard mask effect.
Parameters
inputColor
Node<"vec4">
The input color (vec4 with alpha)
threshold
Alpha threshold
Returns
Node<"vec4">
Opaque color if above threshold, discarded otherwise