mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-15 00:04:59 +00:00
Masks are applied to a layer before its effects, but with the default Blending Mode None these generators replaced each pixel with the generated pattern, so the pattern drew over the whole layer and the mask was lost. With None the generated alpha is now scaled by the layer's alpha, as 4-Color Gradient already did (#1381). A shared gen_alpha helper (CPU) and its WGSL twin hold the rule for Grid, Checkerboard, Circle and 4-Color Gradient. Only None keeps the layer's alpha: the other modes composite the pattern onto the layer as After Effects' blending modes do, and their alpha outside the layer is not verified against After Effects, so they are unchanged. Fixes #3121