A CPU-based raytracer made from scratch for learning
- A compiler compatible with C++20.
- Conan Package Manager.
- Meson.
- Ninja Build System.
Check out the kfr
submodule.
git submodule init
git submodule update --recursive
Set your desired C and C++ compilers and linkers at utils/gen
. The defaults are gcc
and g++
as compilers and ld.gold
as linker.
Generate the needed build files with
./utils/gen
Then, build the project.
ninja -C build/raytracer
The resulting file will be in build/raytracer/raytracer
.
./build/raytracer/raytracer > image.ppm
Then, open the image.ppm
file for the resulting picture.