Line width in custom shader

Hi everyone,

I wanted to implement in threeJS this really nice tutorial, and I can’t get the result they have.

Here’s what they have : sandbox


My line rendered by my shader isn’t the same as them :


The main difference is that the shader system is different, as I used the normal vec3 provided by THREEJS WebGL and they constructed their own normal vec2.
The width of my line is far too small to be able to see something

Here’s my Git if you want to check what I’ve done.

Thank you for your time :slight_smile: