vbo and glPointSize
in
Programming Questions
•
3 years ago
Hello all,
i'm looking for a way to render some vertex buffers containing point coordinates with an additional parameter that would be used for the size of the points. For the moment, the size can only be set for all the points via glPointSize.
I've read that a solution would be to use a vertex shader but I really don't know what the shader should look like and how to pass a parameter to it... First time I use that kind of stuff so I'm a little bit lost...
i'm looking for a way to render some vertex buffers containing point coordinates with an additional parameter that would be used for the size of the points. For the moment, the size can only be set for all the points via glPointSize.
I've read that a solution would be to use a vertex shader but I really don't know what the shader should look like and how to pass a parameter to it... First time I use that kind of stuff so I'm a little bit lost...
1