A tiny CUDA Path Tracer
- Build BVH-Box in parallel using Morton Code
- Expand 32-bit Morton Code to 64-bit
- No material implement, just use diffuse color
- Very fast compared to using CPU
mkdir build
cd build
cmake ..
cmake --build . --config Release
Resolution | SPP | Max Reflection | GPU | Time |
---|---|---|---|---|
1024x1024 | 128 | 8 | 3060ti | 29.5s |
512x512 | 64 | 7 | 3060ti | 3.7s |
256x256 | 32 | 6 | 3060ti | 0.4s |
MSVC >= 19.20