Chapter 6

Lighting and Shading

We see objects in the real world only if light from their surface or volume reaches our eye. Cameras capture the images of the objects only when light coming from them falls on their sensors. The appearance of an object in a scene, as seen by the eye or as captured in photographs, depends on the amount and the type of light coming out of the object towards the eye or the camera, respectively. So to create realistic looking images of our virtual scene we must learn how to compute the amount of light coming out from every 3D object of our synthetic world.

Light coming from an object may originate from the object itself. In such a case, light is said to be emitted from the object, the process is called emission, and ...

Get Introduction to Computer Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.