tibur:
You can use point sprite: enable it using glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); and then you can use gl_PointSize attribute in your vertex program.
Vertex shader example taken from an OpenGL discussion thread:
参考:void main() { gl_FrontColor=gl_Color; gl_PointSize = gl_Normal.x; gl_Position = ftransform(); }
Point_primitives
Vertex_Shader