PDA

View Full Version : ambient light



helda
01-20-2003, 12:22 AM
Hello guys

is there any difference between ambient light from a local light and the global ambient light?

helda

MickeyMouse
01-20-2003, 12:47 AM
Originally posted by helda:
is there any difference between ambient light from a local light and the global ambient light?

Yes, local will have local effect and global will have global effect http://www.opengl.org/discussion_boards/ubb/smile.gif
Think of ambient as of say, sun light - it's everywhere and everything is lit with same strength.
In fact however, we don't have any ambient (sun is diffuse) light here on the earth, it's used for graphics mostly not to let things look very dark and give them some minimal amount of light.

[This message has been edited by MickeyMouse (edited 01-20-2003).]

Structural
01-20-2003, 04:12 AM
A little question from me here too....

Are ambient lights cumulative? So, if I enable LIGHT1 and LIGHT0, both with some ambient light, are they added together? Or modulated? Or does one stay off?

T
01-20-2003, 04:45 AM
The contributions of each active light are all added together.