sprite ai
Check an AI Recolor Pass and the Draw That Follows It
A team-color pass should preserve the approved coverage of a generated badge. It also must leave the graphics state ready for the next icon. Checking only the recolored badge can hide an alpha write mask that leaks into later work.
Add a second drawing after the recolor
Begin with two pixels on the badge that have different fractional opacity. Recolor both by running the actual GPU pass and read back the bytes. The color should change and the two alpha values should survive independently. Immediately draw a different icon into a region where the new coverage is supposed to change. Check that its alpha is written normally.
The FrameSprite technical guide and test fixture describes the ModernGL framebuffer channel mask used to preserve alpha in a native control. Restore the intended mask after the recolor, including when the pass is skipped or returns early. A small two-stage regression catches both possible failures: loss of coverage in the first pass and unintended retention of coverage in the second.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.