2023.5.30 - 2023.6.03
2023.6.26 - 2023.7.02
整理代码和文档
Running command:
cmake -B build ; cmake --bulid build
To do:
- output .ppm image
- Antialiasing
- Materials: Diffuse, Metal, Dielectrics
- Camera: Defocus Blur
Code lines:
find . "(" -name ".cpp" -o -name ".hpp" ")" -print | xargs wc -l
834 total
File structure:
tree /f
└─src
├─core
│ camera.cpp
│ camera.hpp
│ material.cpp
│ material.hpp
│ object.cpp
│ object.hpp
│ ray_tracer.cpp
│ ray_tracer.hpp
│ scene.cpp
│ scene.hpp
│
├─main
│ main.cpp
│
├─material
│ dielectric.cpp
│ dielectric.hpp
│ lambertian.cpp
│ lambertian.hpp
│ metal.cpp
│ metal.hpp
│
├─math
│ constant.cpp
│ ray.hpp
│ vec3.cpp
│ vec3.hpp
│
├─object
│ sphere.cpp
│ sphere.hpp
│
└─utility
intersection.cpp
intersection.hpp