How to draw lines starting from a table of data in GLSL?

While this is totally possible in GLSL, it might be worth looking at the ObjectCHOP Snippets section, there’s a good example of how to instance lines by computing bearing and distance values. Your positions are all calculated in CHOPs but because you’ll be using instancing it’ll utilise the GPU.

This post shows the origin of those snippets from Matthew Ragan: Object CHOP Techniques