PDA

View Full Version : about attenuation



airseb
04-09-2005, 11:36 AM
Hi,
i would like to know if sometimes implementing attenuation is forced ?
i wonder why because with my program without attenuation my meshes are lighted too much, and i don't know if it is a problem of attenuation of normals computation.
Can you help me ?

ZbuffeR
04-09-2005, 12:52 PM
glEnable(GL_NORMALIZE); // to fix normals

In real world, lights are always attenuated as 1/(d*d).
And if you have more than one (unattenuated) fully white light, sure the scene will become overbright.

airseb
04-09-2005, 02:10 PM
ok thanks for your answer !