Fat Lines + Depth Scale

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

I’m guessing I’d have to modify something within 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?

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

2 Likes

Exactly that :slight_smile: THANK YOU!