We are creating draw engine in unity, and we are using LineWorks asset for creating lines. Marker pen needs to tint colors behind, and we do this by reducing it’s opacity and it works well so far. But the thing is, when one line overlaps itself, we want it not to tint itself, but to tint everything underneath
Example:
This is what we have so far
And this is what we want:
These are both meshes, and we have our custom shader. Is there any way we can just adjust the shader to ignore overlapping parts of the mesh?