Skip to main content
gamedev.net
🔒 Locked

Ambient and Diffuse?

Started by yuppies 1 reply 400+ views
Original Post
yuppies
yuppies
Whats an Ambient and Diffuse Light? whats the basic difference between ambient and diffuse when specifying material for D3D Device VS Specifying ambient and diffuse for Lighting?
Supernat02
Supernat02
A material is how the object reflects light, whereas a D3DLIGHT9 object represents a light source. If the object only reflects red light, and the light source is only green, then the object will be completely dark. If the object reflects red (material is red) and the light source emits red, then the object will be lit to the fullness of the light hitting it. Ambient light is light all around you. In terms of a 3D object, it's the color and intensity that object is. Diffuse is the light that reflects off and on the surface's tiny crevices diffusing the light over the surface, based on distance, direction, and intensity.

Chris
Chris ByersMicrosoft DirectX MVP - 2005

Topic Locked

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

Sign in to reply to this topic.