Porting SlimTracin to the new C++ codebade (Single-threaded CPU, no SIMD):
https://github.com/HardCoreCodin/SlimTracinCpp/blob/main/src/examples/02_Geometry.cpp

  • Improved Geometry example (02)
  • All ray distances are now in world space, including for local-space tracing. Simplifies code dramatically, reduce overhead of hit transformations, and unlocks early-outs for further away hits from currently-closest distance, both within ray/primitive intersections and across scene BVH AABBs
  • Ray/Sphere and Ray/Box intersection overhaul optimization
  • Texture mip selection using Ray Cones and UV-coverage (fixed)
  • Normal map proper direction rotations (quaternion-based, fixed issues)
  • Fixed all outstanding rendering and user-interactions issues

TODO:

  • Finish all other examples
  • Reintroduce triangular mesh support with mesh BVHs
  • Reintroduce GPU support (CUDA)