sprite ai
Stress-Test an AI Recolor with a Palette Index Above One
If a game uses palette indices to recolor a generated sprite, its index texture is lookup data. A normalized sample can turn a valid slot into a fraction and make every candidate look as though it came from the first few swatches.
Use two levels of inspection
Put slot 130 beside a reserved transparent slot in a small sprite. Give slot 130 clearly different colors in two target palettes. After upload, first inspect the exact slot the shader reads, then switch palettes and verify equal coverage and the intended color difference. The transparent pixel should remain transparent in both. Add a mask control showing that the application still handles genuinely normalized coverage where it should.
FrameSprite's technical guide and test fixture records a ModernGL integer read and a normalized read from the same byte. Treat texture type, shader sampler and palette lookup mode as one declared contract. If the source is indexed PNG, test the path before and after decoding, because expanding the image to RGB too early may discard the slot information entirely.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.