A Simple Raytracer

The code is present in the Code.tar.gz tarball at the bottom of this page, and requires libX11 to compile. In order to run the program, you will need an X server.

I created two versions of this program. 

Version 1 is a bare-backbone raytracer which implements only ray-object intersection. It is meant to serve as a basic framework.

Version 2 improves upon Version 1 by adding lighting and shading.

Here are screenshots from both these versions:

Version 1

Version 2