So I just wanted to share a thought and see what you guys think. I was thinking of making a simple shader that replaces blocks of solid color on a texture, with another solid color. The reason is that I think this could be useful for iterating palette swaps of sprites more easily. Thing is, I’m having issues coming up with a solution for identifying specific color values. If I could settle for 4 colors, it’d be easy to control with RGBA.
To further illustrate what I want to do, take a look at this sprite color breakdown from skullgirls:

With that mask to the left, they can generate all of the alternate costumes for that character (Then I assume the shadows and highlights are overlayed with another sprite sheet or something similar).
Oh yeah, and to make things easier, let’s assume our mask values are hardcoded into our pipeline, so I already know I wanna use Red, Green, Blue, Cyan, Magenta, Yellow or something.
The closest solution I’ve thought of yet is just making an if statement to check the color - could work, but maybe one of you guys can think of a more cost effective way of doing it.