Hello, I’m hoping that someone here would be kind enough to provide some assistance with a shader.
I’m using Vectrocity to draw a textured 3D line (free AA edging with bilinear texture filtering) to create a hex grid pattern. However, in order to draw the grid, some of my lines have to overlap with each other. The problem is that it is desired to have this hex grid be semi-transparent and obviously with standard shading I’m going to get an overlay effect on the line parts where they overlap. This will cause the overlapped lines to look less transparent than the rest of the grid where there is no overlap. Is there a shader way that is cheap that I could use to render the line a a contiguous color but still take advantage of the alpha blended edges? Obviously, the fewer passes the better as this is for a mobile game.
The only thoughts so far is to do something like a soft-edge transparency or to write into the stencil buffer. Any suggestions?