/raytracer

Raytracing course from Ray Tracing in One Week

Primary LanguageC++

Ray tracer

This is a simple ray tracer written in C++.

Features

It uses the following concepts :

  • Ray tracing
  • Phong shading
  • Reflection
  • Refraction
  • Anti-aliasing
  • Soft shadows
  • Depth of field

Build

mkdir build
cd build
cmake ..
make

Run

./raytracer

Output

The output is a .ppm file that can be visualized with an image viewer. image