Ray Tracing Project 2: Shading

Description

For this project, I added multi-threading and Blinn-Phong shading. I had a problem getting the shading to work correctly, but the problem ended up being that I was multiplying with the angle in the geometry term ("cosine theta") itself instead of the cosine of that angle.

Images

Render times listed below only include actual rendering, not scene file or output image I/O.

All the images were rendered with 4 render threads on my late 2011 Macbook Pro with the following specifications:

Color Image

Render Time: 0.050 seconds

Z-Buffer Image

Render Time: 0.050 seconds