116 Digital Lighting and Rendering
Final gathering performs both of these tasks by starting at each point on a
surface being rendered, and looking around at all directions to see what is
visible from that point. You can adjust how many rays or samples are taken
by fi nal gathering, to determine how many different directions it will look
around into the scene. When fi nal gathering is sampling rays in different
directions, it looks at the color and illumination on nearby surfaces to add to
the global illumination, and it also looks at nearby photons in a photon map,
so that it can fi lter and smooth out photon mapped global illumination.
To use fi nal gathering in conjunction with photon mapping, usually it’s best to
save the fi nal gathering step ...