Thursday, January 27, 2011

Ray Tracer Part Five: Reflectivity (and recursive tracing)

The next part of our raytracer involves adding in reflectivity to objects, which extends our raytracer to a recursive raytracer. This means that for each ray shot into our scene, we may end up tracing more to resolve reflections or (soon to be) transmissions (refractions) in our scene. Below shows the result of adding a reflective surface to our scene:

Reflective