O'Reilly logo

Ray Tracing from the Ground Up by Kevin Suffern

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14

Lights and Materials

image

Objectives

By the end of this chapter, you should:

  • know the difference between direct and indirect illumination;
  • understand how directional lights and point lights are defined;
  • understand how ambient and diffuse shading work;
  • have implemented ambient and diffuse shading with directional and point lights and a matte material.

In this chapter, I’ll start to discuss shading, the process that gives visual appearance to objects. Without shading, we can only render objects with constant colors, as in Chapter 3, where all of the objects look flat. Shading results from the interaction of light with the surfaces of objects, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required