For some reason, light attenuation does not want to work in a game I’m writing
When I light the scene with
glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 2.5);
glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 5.0);
I see no difference from when I use
glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 1.0);
glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.0);
The light is a point light (located between the two characters) and only uses ambient and diffuse. I’ve tried moving its position about 500 m away from the characters, and there is still no hint of diminishing intensity.