Claurissa Tuttle
Graphics 6620


Project 10.

Creative image:



Soft shadows with 25 samples per pixel.

Soft shadows with 16 samples per pixel.

Code listing:

Program 10 tarred

Design Choices:


I chose to incorporate soft shadows by implementing an area light class. The main function stores the sample values for the current pixel in context (one sample at a time). The getlight routine in area light then gets them out of context and uses them. I reuse the samples calculated for pixel, but the light ray traverses the samples in the opposite order as the viewing ray. This seemed to work pretty well, so I stuck with it.

Extra Credit:

None so far.