shader fly line improved version

I wrote a front fly line (THREE.Line performed based on color change), simply the visible region of the alpha channel value of the color tile set to 1.0, not in the visible region of 0.0. The effect is something like this:

Do very rough, and because there is no line thickness, the effect is not very satisfactory, then achieved by pointSize line thickness changes, and processing, smoothing processing point and end segments of the visible region of the color line, etc. Therefore, improvement of the the effect is as follows:

Paste the code in two days

Guess you like

Origin www.cnblogs.com/eco-just/p/11210816.html
Recommended