I have a hexagon sprite MainTex over which I want to render an outline texture SecondaryTex independent of the alpha value of the MainTex. Since I have a fairly large grid with many hexagons, two sprite renderers are not possible.
I have already achieved the overlay, but can’t get it to decouple from the MainTex alpha. Whenever I set the alpha of the sprite renderer to 0, the outline is also affected. I already tried to use a Maximum Node with the MainTex and the SecondaryTex alpha and use this value, but it doesn’t work.
How can I overlay and display the outline even if the MainTex / Sprite Renderer alpha is 0?
Edit:
This is the GameObject with the Sprite Renderer alpha set to 100%:
And this with the alpha set to 10%:
The alpha of the outline should not be influenced by the alpha of the MainTex sprite renderer, but it is. The same behavior occurs when I add a maximum node:
These are the import settings:





