I have geometry shader which looks like: https://pastebin.com/fpX6P40b
If I change
gl_Position = mvp * vec4(endX, endY, 1.0, 1.0);
To
gl_Position = mvp * vec4(endX + center.x, endY + center.y, 1.0, 1.0);
Chaos appears, like I've commented out in the source. Which is not what it should be, instead it should look like in the image, a neat little ball shape, formed of objects.
Instead it looks like the chaos on the video, or the gif incase I can't post video.
Anybody have any ideas?
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.