Skip to main content
gamedev.net
🔒 Locked

Light source question

Started by Daaark 1 reply 900+ views
Original Post
Daaark
Daaark
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.
Yann L
Yann L
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.