Connect all points with lines

How do I make all the particles have lines connecting like this pen

This is what I have at the moment

You can daw array of points with gl.LINES and then another draw call with gl.POINTS

The following official three.js example might help:

Study how LineSegments and Points are managed and rendered in this demo.


Hm, why do you ask about something you already have? :wink:

Do you want a complete graph, a graph where all nodes are connected to each other?

Source (public domain): Complete graph - Wikipedia