Table of Contents
This project implements ray tracing software in C++ following the book, Ray Tracing in One Weekend, by Peter Shirley, Trevor David Black, and Steve Hollasch.
To run the ray tracer with default settings, follow the installation.
Requires a C++ compiler, version 11 or higher
- Clone the repo
git clone https://github.com/keenemeck/ray-tracing.git
- Change into the ray-tracing directory
cd ray-tracing
- Compile and run the program
g++ -I include -std=c++11 cpp/*.cpp -o ../driver && .././driver > image.ppm
To change the scene presented and camera settings, open the driver.cpp
file located in /cpp
, and change the camera settings to those desired.
The output will be written to image.ppm
, in the repo's root directory.
Distributed under the MIT License. See LICENSE.txt
for more information.