Question: How to visualize points in openGL using GLSL?
Information: some time ago I made a simulation of gravity on a python and used a blender for rendering. It looked like this . As an exercise, I port it to openGL and openCL. I think I already worked in openCL. Only when I spent some time working in openCL did I realize that it was difficult to understand if this was correct without being able to see the result. So I started playing with openGL. I followed the openGL GLSL wikibooks tutorial, very informative, but it did not cover points or particles.
I donβt understand where to start. most of the tutorials that I find are for openGL by default. I want to do this using GLSL. I'm still very new to all of this, so forgive me for my potential idiocy if the answer is right under my nose. I am looking for how to make halos around points that merge with each other. I have a general idea of ββhow to do this in the fragment shader, but as far as I know, I can only capture pixels that are enclosed in polygons created by my points. I am sure there is a way around this, it would be crazy if it werenβt, but I am ignorant in my newcomer. Can someone give me some direction here? thanks.
source share