Advanced Computer Graphics: Laboratory Project

<< PREV | INDEX | NEXT >>

Task 1A: Calculate the Ambient Lighting Term

Solution

return light0ambient * materialAmbient;

As seen in figure 2 on the previous page the ambient light value affects all surfaces of the geometry equally. Note that the ambient term is independent of both the position of the viewer and the position of the light.


<< PREV | INDEX | NEXT >>