Raytracer

C++OpenGL 4.6SDL3tinygltf

View on GitHub

Ray Tracing in One Weekend

This is an implementation of a simple CPU raytracer that writes RGB values to a PPM file on disk. It is based on the amazing tutorial series (the first one in this case) Ray Tracing in One Weekend. I haven't done much else besides follow the tutorial and code up things in a style that I prefer rather than the way they did some things in the article.

Next Steps

Since many operations in raytracing are highly parallelizable, I want to:

  • Work on multithreading CPU side.
  • Use some graphics API to do raytracing in shaders.

Renders

color_bleed glass_gallery mirror_hall depth_of_field

Single-threaded render times

render_times