# 克隆仓库
git clone https://github.com/AICL-Lab/ray-tracer.git
cd ray-tracer
# 构建 (需要 CUDA 12+)
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
# 渲染 (Phong 着色)
./build/bin/ray_tracer -o output.ppm
# 渲染 (路径追踪)
./build/bin/ray_tracer --mode path-trace --samples 128 -o output.ppm CUDA Ray Tracer高性能 GPU 光线追踪器
基于 CUDA 的实时光线追踪技术白皮书,涵盖 BVH 加速、蒙特卡洛路径追踪和 Warp 分歧优化