I have a scene with positional light in the middle and some ground built of about 2000 polys around it. The light works fine, but there is one little problem ... objects that are far away is lighted as much as those that is close to the light. What do i need to do to change this, obviously the following code wasn't enough:
[This message has been edited by Humus (edited 03-30-2000).]Code :glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 2.0); glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 1.0); glLightf(GL_LIGHT0, GL_QUADRATIC_ATTENUATION, 0.5);



