# Fat Lines + Depth Scale

**URL:** <https://discourse.threejs.org/t/fat-lines-depth-scale/10718>\
**Category:** Questions\
**Tags:** shaders, geometry\
**Created:** [November 8, 2019, 7:31pm UTC](https://discourse.threejs.org/t/fat-lines-depth-scale/10718 "2019-11-08T19:31:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyarosla](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dyarosla/32/5468_2.png) [@dyarosla](https://discourse.threejs.org/u/dyarosla)\
**Post date:** [November 8, 2019, 7:31pm UTC](https://discourse.threejs.org/t/fat-lines-depth-scale/10718/1 "2019-11-08T19:31:39Z")

</div>

Has anyone extended the webl\_lines\_fat example to allow for a perspective/depth modified fat line? That is, I want lines that are thick in world space, but as they recede into the distance they scale accordingly.

Here’s the example I’m referring to:  
[https://threejs.org/examples/webgl\_lines\_fat.html](https://threejs.org/examples/webgl_lines_fat.html)

I’m guessing I’d have to modify something within [https://github.com/mrdoob/three.js/blob/22ed6755399fa180ede84bf18ff6cea0ad66f6c0/examples/jsm/lines/LineMaterial.js](https://github.com/mrdoob/three.js/blob/22ed6755399fa180ede84bf18ff6cea0ad66f6c0/examples/jsm/lines/LineMaterial.js)

Ahead of stumbling around this shader code myself, I was curious if anyone’s already been successful with this before?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [November 8, 2019, 7:56pm UTC](https://discourse.threejs.org/t/fat-lines-depth-scale/10718/2 "2019-11-08T19:56:57Z")

</div>

I guess you are looking for something like this, right?

> <https://github.com/mrdoob/three.js/pull/16912>

---

<div class="post-metadata">

**Author:** ![dyarosla](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dyarosla/32/5468_2.png) [@dyarosla](https://discourse.threejs.org/u/dyarosla)\
**Post date:** [November 8, 2019, 8:00pm UTC](https://discourse.threejs.org/t/fat-lines-depth-scale/10718/3 "2019-11-08T20:00:53Z")

</div>

Exactly that 🙂 THANK YOU!
