On things that don't matter
Have you spend more time than necessary for an almost useless feature ? Welcome to the club.
In Patchonomicon, our game about sewing little creature together, you place these little patch of cloth together and try to get the currect shape and color. But placing them on top of one-another wasn't enough, i wanted to add the stitch pattern.
And here i go, spending multiple hours to implement this.
First i'll add another sprite renderer to each shape, with a transparent white texture on a special layer. A dedicated camera record this layer and stores the result into a texture.

Then, we added another sprite renderer to store the stitch pattern of each shape with a custom shader to mask the texture based on the white level of the transparency texture. As the transparency texture is ... transparent ... when multiple shape are place on top of one-another, the intersection of the two is brighter on the transparency texture. We can now use the transparency texture to mask the stich pattern, after figuring out how to do the translation from world space position to UV on the transparency texture using the camera render size & position ...
Here the result:

It doesn't look bad but it would be great if the shapes were bigger than 1cm ... :face_palm:
Anyway, come play our game :)
