Hello all!
I’m developing a 2D terrain tool like Ferr2D.
And i’m having a issue about standard fade transparency shader (semi-transparent objects), where seens that polygons drawn later appear in front of ones drawn first, despite the “Z” order.
Basically, i’m using a single procedural mesh for all edges in the terrain (say, grass top, rocky walls, and roofs, based on edges’s tangents…), and i’m offsetting the edges, to render grass over all other edges, but for some reason the fade shader won’t let this logic work properly. (Cutout works fine, but is visually inappropriate).
The Ferr2D pack doesn’t seens to suffer from this issue, because it uses it’s own shader to render edges.
What i want is to achieve this, like the pack does.
Can anyone point me to a built-in working shader, or some shader asset i can buy, or any other help that will let me render the right polygon order?