So I am working on a specialized point cloud viewer, using OpenGL 4.3. My code is completely fixed-function pipeline free, using shaders for everything of course.
I am currently rendering 10+ million points using GL_POINTS without a problem, but I would like to utilize point sprites, so i can add proper world size (get bigger and when you get closer) to my points in a specific mode (I am not expecting that i can still render 10+ million points with point sprites, so I will sub-sample).
I am looking at point sprite rather that geometry shader generated quads, due to some articles claiming better performance on my target platform for point sprites, especially for the amount of points I want to render.
I am having difficulty finding a complete example on how to use OpenGL point sprites in combination with GLSL (im using version GLSL 4), to control coloring and point size. All I am finding are incomplete snippets. It may be to lack searching right.
Does anyone know of a good tutorial/example for this (Point Sprites with GLSL (version 4 and up would be nice))?