Skip to content

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.

Node <"vec4">

The input color (vec4 with alpha)

FloatInput

Alpha threshold

Node <"vec4">

Opaque color if above threshold, discarded otherwise