I'm making a 3D game and I'm going to use a single image texture containing a color palette for all the objects in my game.
I want to use a single color from that palette as sort of a "key color" that could be modulated, without affecting the other colors from the palette.
For example, I want to have a character with brown boots, blue pants and a shirt in that "key color" that can be modulated through code to any color I want it to be.
How can I achieve this?