NOTE: There is currently an issue with this program where it takes a very long time to render. It does finish, but takes around 1 minute
Applies basic shading and lighting techniques to spheres and planes. Supports multiple light sources and spotlights as well as pointlights.
The steps below are what is required to install the program on different architectures. Note that this project was built with Clion by jetbrains, so cmake is a dependency to build the program.
Note: All commands should be run from the project root directory
$ export LDFLAGS="-lm"
$ cmake .
$ make
Note: Must have cmake version >= 3.3.2 installed
$ cmake .
$ make
$ ./raytrace <width> <height> <input.json> <output>
> raytrace.exe <width> <height> <input.json> <output>