I have two lines created using the line renderer. They are the same length and position except for the Y values.
Line 1 positions:
start: (constStartX, 0.005f, constStartZ)
end: (constEndX, 0.001f, constEndZ)
Line 2 positions:
start: (constStartX, 0.001f, constStartZ)
end: (constEndX, 0.005f, constEndZ)
I want the result to be that when looking at the lines from a camera at the top we only see half of each line (the half that is higher than the other line.)
This works great with a perspective camera but not with an orthographic camera. It renderers one line completely over the other, even in the half where that line is lower in the 3D space.
Is there a way to get the desired behavior (the line with the greatest y value is rendered at each point) with an orthographic camera?
Thanks!