Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Daaark

Light source question

This topic is 5274 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What effect does the ambient and specular properties from a light source have on a scene. I understand that in a scene with global ambient light, all surfaces will receive that lighting. And each surface can have a material that specifies if it has any specular highlights. So what does ambient light from a light source do? I''m guessing that all surfaces that are in the range to be affected by the light source will receive the ambient lighting regarldess of which direction they are facing? Same with specular. Will a light with a specular value create highlights on the surfaces it hits? I thought that was the job of the surface''s material.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
**To The Top**

Share this post


Link to post
Share on other sites
quote:
Original post by Vampyre_Dark
So what does ambient light from a light source do? I''m guessing that all surfaces that are in the range to be affected by the light source will receive the ambient lighting regarldess of which direction they are facing?


Yes, influenced by the light attenuation and possibly spotlight cutoff angles.

quote:
Original post by Vampyre_Dark
Same with specular. Will a light with a specular value create highlights on the surfaces it hits? I thought that was the job of the surface''s material.


The surface material describes how a surface reacts to specular reflection. The light for the specular highlight has to come from somewhere: it''s both a function of the material properties, and of the light properties (such as specular colour and intensity). You can also get multiple highlights on a single object, if it is within range of multiple light sources.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!