I was playing a bit with points, but I just can't figure this out. As soon as I change any of the values the slightest bit, my points render at (near?) zero size.
For example:
Code:
GLfloat distance_attenuation[3] = {1.0f, 0.0f, 0.0f};
glPointParameterfv(GL_POINT_DISTANCE_ATTENUATION, distance_attenuation);
glPointSize(32.0f);
glBegin(GL_POINTS);
glVertex2f(0.0f, 0.0f);
glEnd();
renders a 32x32 block in the middle.
Code:
GLfloat distance_attenuation[3] = {1.001f, 0.0f, 0.0f};
glPointParameterfv(GL_POINT_DISTANCE_ATTENUATION, distance_attenuation);
glPointSize(32.0f);
glBegin(GL_POINTS);
glVertex2f(0.0f, 0.0f);
glEnd();
renders a single pixel in the middle. Smooth points don't show up at all, even without blending.
I checked for errors, but of course OpenGL reported none.