--- layout: default title: Ray Sphere Intersection permalink: /pathtracer/ray_sphere_intersection grand_parent: "A3: Pathtracer" parent: (Task 2) Intersections --- # Ray Sphere Intersection ## Step 2: `Sphere::hit` You also need to implement the `hit` routines for the `Sphere` class in `student/shapes.cpp`. Remember that your intersection tests should respect the ray's `dist_bounds`, and that normals should be out-facing.