diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-01 01:07:41 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-01 01:07:41 +0800 |
| commit | 2850abdb23a2ba4fde6268ea4191f4d062b9a01f (patch) | |
| tree | 3e4cc70b322f9a8fd60d1896b4204670517d4b21 /raytracing/README.md | |
| parent | 464313d02b76385d3a2e8809a4595afabca88dae (diff) | |
| parent | 6a3b4ed10f3aa97470f56c39ea74dd903ec5d474 (diff) | |
| download | rcc-project-2850abdb23a2ba4fde6268ea4191f4d062b9a01f.tar.gz rcc-project-2850abdb23a2ba4fde6268ea4191f4d062b9a01f.tar.xz | |
Merge remote-tracking branch 'raytracing-import/master'
Diffstat (limited to 'raytracing/README.md')
| -rw-r--r-- | raytracing/README.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/raytracing/README.md b/raytracing/README.md new file mode 100644 index 0000000..71f3ff5 --- /dev/null +++ b/raytracing/README.md @@ -0,0 +1,44 @@ +# Ray Tracer + +Inspired by the book _Ray Tracing in One Weekend_, I'd like to write this project using modern C++ (C++ 23) and attempt to use high-performance approaches. + +## Build & Run + +Make Sure your build system is properly set up: +```bash +cmake -S . -B build +``` + +Configure for Release: +```bash +# Release mode +cmake -B build -DCMAKE_BUILD_TYPE=Release +#Debug mode +cmake -B build -DCMAKE_BUILD_TYPE=Debug +``` + +Compile the source code: +```bash +cmake --build build +``` + +To normalize the coding style +```bash +cmake --build build --target format +``` + +Suggests improvements to follow good C++ programming practices: +```bash +cmake --build build --target tidy +cmake --build build --target tidy-all +``` + +Run the program +```bash +./build/apps/RayTracer > images/image.ppm +display images/image.ppm +``` + +## License +This project is licensed under the **GNU General Public License v3.0**. +See the [LICENSE](LICENSE) file for the full text.
\ No newline at end of file |
