Ray Casting
The program generates primary rays from the eye location through the near plane to the camera space, implements ray-sphere intersection and ray-box intersection (intersection with multiple rectangles), casts shadow rays, computes the color for each pixel, and finally displays the pixel buffer on the screen.
Render Image: