I have an outline shader that applies an outline to a selected sprite. What I want to do is to apply that shader to a group of sprites as one singular entity, if that makes sense. Basically, the shader would outline all sprites within the group, but not the areas that overlap.
The closest connection I can make is for digital artists. Have any of you ever used Krita? If you apply an outline "stroke" to a group, the stroke outlines only the edges of the group that it makes as a whole, and not the individual layers.
My question might be harder to understand, so here is an image: https://drive.google.com/file/d/1ChY-GThH0Hm4NgXHgq4mWBhNyfJVwF44/view?usp=sharing
(the image on the right is what I wish to achieve)
Thanks to anyone who offers help!