A simple raytracer using CUDA and OpenGL. Raytracing is performed by a CUDA kernel, and drawing is done with OpenGL. Adapted from "Accelerated Ray Tracing in One Weekend in CUDA".
- Diffuse lighting
- Matte material, metallic (reflective) material, dielectric (refractive) material
- Planes and spheres
- CUDA 10
- OpenGL 4
- glm
- GLFW 3
- glew
- CMake
Tested on Ubuntu 19.10
- Install dependencies:
nvidia-cuda-toolkit libglm-dev libglfw3-dev libglew-dev cmake mkdir build && cd buildcmake ..make./main
