Problem with transparent material and GL Lines

Hey guys, I’m having trouble drawing a GL Line behind an object with a material rendering mode set to Fade or Transparent. In the attached image you can see a sample project that I created to show this problem.
You see 2 lines there: one red and one blue. The blue one is made using Unity’s ‘new’ line renderer and the red one is drawn using GL LINES.
You can see in the Scene view both lines are drawn behind the Cube but on the Game View the blue (GL LINE) is drawn in front of the Cube. In the material settings you can see all settings are default with the only things changed were the color of the albedo and the rendering mode. If I switch the rendering mode to something other then Fade or Transparent, the line will be drawn correctly behind the Cube.
Hopefully I explained the issue clearly xD

Why is this happening and how do I solve it?
If you need me to upload the project let me know, but it is pretty easy to set up a similar environment.

PS: I’m using GL Lines because Unity Line Renderer can’t draw 1px lines and that is what I need at the moment.

Anyone?

Bumping Thread.

Having the same issue…

I think this is because you can’t relay on depth buffer to correctly overdraw pixels when using transparent rendering mode. You may be can fix it by ordering draw calls themselves., but the object drawn (line in your case) may be drawn eiter in front of transparent objects or in background of them.