【Line2】 displays differently from different perspectives

Why does the display effect of Line2 change when moving the camera? I have observed that it seems to rotate along with the camera. How to eliminate this difference

set a offset y will do. Static Starter (forked) - StackBlitz
besides, it is better to use a plane texture line instead of line2 that have height value

1 Like

First of all, thank you for your answer. Actually, my main purpose is to understand how to solve the problem of not following camera rotation without setting an offset

For example, after setting it this way, it is obvious that the lines will follow the camera’s rotation

matLine.dashed = true;