I am trying to create a shader for a country-takeover game that uses info (specifically if two GameObjects of countries belong to the same team). All my state sprites are pixel-art with a white inside to be colored, and a black outline that can’t be colored. When two countries belong to the same team, I want the overlapping black border parts of the sprite to seem to disappear by recoloring to the shared color of the two sprites. How do I create a shader that does this effectively for pixel-art sprites?
All you need to do is write a script to set the materials main color to whatever you want. There’s even an example in the Docs: