Shader to customize clothing color

So I’m new to shader programming, but I had a shader in mind that I wanted to start with. I want to find or create a shader that allows you to take a base clothing or skin texture with another mask image that defines regions, and then use that mask to change the color of those regions individually.

The best visualization of what I mean would be like in Rock Band or Guitar Hero when you choose their clothing and hair and then have multiple options to change the color of individual elements of the model.

Does one exist already, and if not does anyone have any tips on where to start? To that end, is this the best way to do this or could I separate the mesh into its individual elements and then just use Unity’s built in color modification? I’ve read that this may be an inefficient and slow way about it, but it would only be for my main character anyways.

The easiest way to do it would definitely be to use built-in shaders and just split up your mesh. I’m not sure if writing a custom shader would be faster for just a few meshes, but my guess is that it’s not worth the fill rate.