/rt

Small CPU ray-tracing demo

Primary LanguageC++

rt

A small demo for ray-tracing based on Peter Shirley's book https://github.com/petershirley/raytracinginoneweekend.

  • Different materials such as lambertian, reflective, refractive and emitting (light)
  • Depth of field
  • Multi-threaded
  • Bounding volumen hierarchy with AABB
  • Image textures

Clone and build

git clone --recurse-submodules https://github.com/jparimaa/rt.git

Configure with CMake and build, e.g. cmake . && make

Submodules

  • glm 0.9.9.1 for vector math
  • stb for reading and writing images

Screenshots

1

2