Modify LineMaterial (Line2) to create glowing lines, but when the viewpoint is rotated, vUv.x changes, resulting in significant differences compared to when viewed directly

  1. In the LineMaterial version of Line2, I use vUv.x to create glowing lines, aiming to achieve high brightness at the center of the lines and gradually fading towards the edges.
  2. However, unfortunately, when I observe the line from an inclined perspective, the glowing effect becomes distorted.


  3. Due to business requirements, I cannot use post-processing effects. Given the current situation, how should I resolve this issue?