How to assign multiple colors for tubeGeometry? How to use the ShaderMaterial to assign pixel color?

Also, have a look at this post:

and read all the thread to get the context of it :slight_smile: