mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-22 15:57:15 +08:00
b78d867e7a
Create a new internal/colormshader package that owns the color matrix shader generation, fully independent of internal/builtinshader. It has its own shader template with ColorM logic baked in, its own Filter/Address types, and a go:generate pipeline producing defs.go. This removes the useColorM dimension from internal/builtinshader, reducing it from 18 shader variants to 9. The colorm package now imports only colormshader (not builtinshader) for shader sources, preparing for the v2/v3 split where v2's colorm cannot access v3's builtinshader. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>