A C++ project for learning ray tracing
Most code comes from Ray Tracing in One Weekend
Strictly follow the Google C++ style guide
# Download the dependency for reading Jpeg file
git submodule update --init --recursive
# Using cmake to build
mkdir build
cd build
cmake ..
make
# Render the Random scene
./ray_tracing
# Render other scenes, you can find all the available scenes in the main.cpp
SCENE=Earth ./ray_tracing
# Modify the SPP to accelerate the processing
SPP=100 ./ray_tracing
- Random
- Random with Time
- Checker Texture
- Two Spheres
- Two Perlin Spheres
- Earth
- Simple Light
- Cornell Box
- Cornell Smoke
- The Next Week