Line rendered changes width unexpectedly

I’m trying to render a shape using line renderer, most shapes i render with it look fine, but for some shapes in the middle of the width of the line changes unexpectedly, like in the attached image:
134065-linerenderer.png

As you can see that the line of the black shape suddenly becomes thinner. The yellow arrowed line is the direction in which the line is being drawn, if that matters.

Please advise.

Ok, after looking at some similar questions, (Namely this one) it seems the 2 points you are rendering the line to and from probably have different Z values, making the perspective of the camera make it look like they are getting further away. check the 2 points the line is between both are on the same Z value, and the Line should render correctly. If you switch to 3D view in the editor you might be able to see that they are physically further away from each other.