Pixel Recolor Shader

Hey All,

Essentially I am looking for a type of shader I have seen in the past. Long story short, I am creating a shmup and have these pixel art ship images (see attachment). In the attachment you’ll see the pixel art ship example has red accents to it. I want the player to be able to choose their favorite color when starting a new game, and then send that color to a shader which will swap out the red accents for accents matching/close to their favorite color. I know that the red accents are different shades of red, so obviously I would want to swap out the red for different shades of their favorite color if that is possible. I know I’ve seen straight color swap shaders in the past, but this might be asking too much, I don’t know.

My question is, what type of shader is this or what is it called so I can start googling for it? If anybody has one already, that would be great if you can share! If not, does anybody know where I can find or do a tutorial to create it myself? Where do we begin? Please let me know, thanks!

8513792--1134722--Ship Example.png

at least ‘palette swap shader’ used for these
https://assetstore.unity.com/?q=sprite%20color%20swap&orderBy=1

i think seen some snippets in forums/github also.