Render order z-fighting?

Hi,

it seems ALINE does not support rendering of primitives on top of each other?

I would have expected that the API shows the same behaviour as Handles.DrawXXX does, for example, doing this in an SceneView OnGui handler:

Draw.Line(new Vector3(0,0,0), new Vector3(1,0,0), Color.white);
Draw.PushLineWidth(2);
Draw.Line(new Vector3(0,0,0), new Vector3(1,0,0), Color.red);
Draw.PopLineWidth();

I would expect to only see a red line.
However, I see a very ugly z-fighting of the white line in the middle of the bigger red line.

Note: ALINE project settings for Opacity are all 1 (and all Opacity(occulded) are set to 0)

Hi

Sorry, ALINE is not specifically designed to support this. It’s quite hard to do when anti-aliasing is used as well.

You could draw the red line imperceptibly closer to the camera, though. To resolve the z-fighting.