# 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

**URL:** <https://discourse.threejs.org/t/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/75034>\
**Category:** Questions\
**Tags:** line2, fat-lines, shaders, materials\
**Created:** [December 10, 2024, 10:14am UTC](https://discourse.threejs.org/t/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/75034 "2024-12-10T10:14:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stan200096](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/stan200096/32/43939_2.png) [@stan200096](https://discourse.threejs.org/u/stan200096)\
**Post date:** [December 10, 2024, 10:14am UTC](https://discourse.threejs.org/t/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/75034/1 "2024-12-10T10:14:40Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/6/86eb4dec5af8d2226af2a82b6de96354d04689a3.png)

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.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/4/54f4fec203fbc583bf9cdee7cceb68aaf574eaa2.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/2/625d854035a1f842d08350098bf6ddcd33c66db9.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/e/5eba470b3f578a0197e065911d6ff54015dadb0c.jpeg)
3. Due to business requirements, I cannot use post-processing effects. Given the current situation, how should I resolve this issue?
