Skip to content

sereinnel/raytracing

Repository files navigation

Ray Tracing in One Weekend – CUDA Edition

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.

Features

  • 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

About

A simple CPU ray tracer from Ray Tracing in One Weekend accelerated with CUDA for real-time GPU rendering. Supports spheres, triangles, and rotated cubes, outputting PPM images.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors