Hasty Briefsbeta

Bilingual

Show HN: a Rust ray tracer that runs on any GPU – even in the browser

5 months ago
  • #Rust
  • #GPU
  • #Raytracing
  • Three raytracing implementations: CPU Raytracer, GPU Raytracer, and Live GPU Raytracer.
  • CPU Raytracer: Software-based, outputs to PPM file, supports path tracing, direct/indirect lighting, mesh and sphere primitives.
  • GPU Raytracer: Uses compute shaders for faster rendering, same scene quality as CPU version, outputs to PPM file.
  • Live GPU Raytracer: Real-time interactive window with camera controls, two rendering modes (raytracing and normals visualization).
  • Build and run commands provided for each implementation.
  • Features include full path tracing, mesh support, GPU acceleration, and interactive controls.
  • Future enhancements: More shapes, BVH acceleration, texture mapping, shadows, reflections, UI for scene setup, and documentation.