# Lab B02 Supersampling and Recursive Ray Tracing

### Tasks

Lab B02 corresponds chapter 6.5 - 9 of Prof. Shirley's Ray Tracing in One Weekend Tutorial

You can directly follow Prof Shirley's Tutorial.

You can directly follow Prof. Shirley's Ray Tracing in One Weekend Tutorial (6.5 - 9.4 )at&#x20;

{% embed url="<https://raytracing.github.io/books/RayTracingInOneWeekend.html#surfacenormalsandmultipleobjects/alistofhittableobjects>" %}

#### Focus

Introduce **local illumination** and secondary rays.

#### Learning objectives

By the end of this lab, students will be able to:

* Compute hard shadows using shadow rays
* Implement recursive diffuse light scattering

#### Key activities

* Add recursive diffuse rays
* Control recursion depth

#### Visual outcome

* Shaded objects
* Shadows
