For example:
Code: Select all
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();
Code: Select all
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();
I checked for errors, but of course OpenGL reported none.