Hello everyone! I have a map of region provinces which are each a different, unique pixel color. This is shown in the first image. I want to find a way to draw borders between them on the game map which are colored by their province owner.
You can see in the second picture that on the game map I have, I already found a shader which draws borders in between them, but I can't find a way to differentiate by color. Does anyone know how this might be done? For example, all regions owned by the English would have a red border, the French provinces would have a border in blue, etc.
I would also like to have a shader which would overlay on top of the map. This would shade the entire province one color. In the third picture, you can see a highlighted province which is colored white. I would like to find a way where a shader can highlight all provinces in the faction color.
Basically, since my province map each has a unique color per province, I want to be able to draw colored borders in between them, and also to highlight each unique province in a color of my choosing. Apologies if this is complicated, I'm really looking for any help I can get because it's a fairly niche issue.