I am trying to draw point sprites in OpenGL ES 2.0, but all my points end up with a size of 1 pixel...even when I set gl_PointSize to a high value in my vertex shader.
How can I make my point sprites bigger?
OpenGL ES 2.0 supports Point Sprites; i use them for particles. Just use
In vertex shader, you set the size with
My vertex shader:
My fragment shader:
If you are on Android, you can look my french Tutorial. There is a full project with point sprites.
OpenGLES 2.0 does not directly support point sprites. You can either texture your glPoints or manually create a camera-facing and camera-aligned quad centered on a point.