/cpu-path-tracing

Path tracer targeting correctness, not necessarily speed(though planning to port this to the GPU)

Primary LanguageC++The UnlicenseUnlicense

CPU Path Tracer

This builds upon smallpt and borrows a few things from Ray Tracing in One Weekend:

  • The camera(I just couldn't understand all the magic constants in smallpt)
  • The formulas for dielectrics and lambertian reflection

I ultimately plan to port this to the GPU, but until then I need to sort out some other things:

  • Implement a BVH for fast intersection testing
  • Make the rendering process progressive
  • Probably replace the current method for random number generation(maybe something like a xorshift will be much faster)

Image with a bos of mirrors and a few spheres with a light