Implementation of CPU based Path Tracer based on Ray Tracing in a Weekend by Peter Shirley
This is an implementation of a very simple Path Tracer based on the famous book "Ray Tracing in a Weekend" by Peter Shirley.
To get a local copy up and running follow these simple steps.
- C++ - Google for your OS.
- git
- Clone the repo
git clone https://github.com/saeenyoda/RT_IN_A_WEEKEND_IMPL.git
- Open up command line or terminal and navigate to the cloned repo's directory
cd "PATH-TO-DIRECTORY"
- Run the main.cpp file (Using terminal on mac)
clang++ -std=c++14 -stdlib=libc++ -I "PATH-TO-res/utils-FOLDER" -I "PATH-TO-res/vendors/stb_image-FOLDER" "PATH-TO-main.cpp" "PATH-TO-HittableList.cpp" "PATH-TO-Sphere.cpp" -o out/release/main
NOTE:
The instructions given above are for mac and that too using the terminal. For other OS and IDEs refer to the relevant docs.
Distributed under the MIT License. See LICENSE
for more information.