The pack
spriteCutout
function spriteCutout(): Pack<{}, {}, { cutout: CutoutData }>
The sprite-cutout pack: hard alpha-tested edges for the sprites that ask, spawn({ cutout: { threshold: 0.5 } }),
changed live with h.cutout.threshold. Registers the threshold column as a SpriteCutoutSource for the backends and
effects-2d. Requires a 2D world; no options.
Types
CutoutData
interface CutoutData
The cutout field this pack adds to every object: its alpha-test threshold.
threshold: number— Combined alpha (texture × tint × object alpha), 0 to 1, below which a pixel is discarded; pixels at or above it are drawn opaque. Default 0, which turns cutout off; a positive value is clamped to 1, a non-finite one turns it off.

