Advanced OpenGL: Point Size

edited June 2017 in GLSL / Shaders

I've been hacking on the Advanced OpenGL example sketch, trying to create a VBO-based grid that I can then apply GLSL shaders to, to do various cool things.

One of the things I want to do is add an option to display grid vertices as points. I've managed to get that working, but I can't work out how to change the point-size with an OpenGL call.

I'm currently using

gl.glDrawElements(PGL.POINTS, indices.length, GL.GL_UNSIGNED_INT, 0);

to draw the verts as points.

I'd like to add a line to change point-size, and maybe add the possibility of antialiasing them, too. I've tried various things, but haven't been able to get it to work.

a|x

Answers

Sign In or Register to comment.