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
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
threshold
Section titled “threshold”Alpha threshold
Returns
Section titled “Returns”Node <"vec4">
Opaque color if above threshold, discarded otherwise