Didactic ray tracing implementation using C++ adapted from Ray Tracing in One Weekend by Peter Shirley. Apart from the original implementation, I've tried to achieve parallelism using Cuda C++.
- g++ 7.4.0 or Cuda Toolkit with nvcc v9.1
- make 4.1
1. Clone the repository: $ git clone https://github.com/r1walz/ray-tracing-in-one-weekend.git
2. cd ray-tracing-in-one-weekend
3. use `$ make` to compile using g++ or `$ make CC=nvcc` for gpu parallelism
4. ./tracer >image.ppm
5. Open the `image.ppm` file using your favourite ppm image viewer
To clean up, use $ make clean
.