A simple ray tracer based on Ray Tracing in One Weekend by Peter Shirley, accelerated with CUDA for GPU rendering. The scene description is built on the CPU and then transferred to a CUDA kernel that traces rays in parallel on the GPU.
- Spheres and triangles with ray–object intersection
- Rotated cubes made of triangle quads
- Sky gradient background
- Normal-based shading
- PPM image output (binary P6 or ASCII P3)
- CUDA kernel runs one thread per pixel