Skip to content

xeniafox/raytracer

Repository files navigation

raytracer

A CPU-based raytracer made from scratch for learning

Requirements

  • A compiler compatible with C++20.
  • Conan Package Manager.
  • Meson.
  • Ninja Build System.

Building

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.

How to use

./build/raytracer/raytracer > image.ppm

Then, open the image.ppm file for the resulting picture.

About

A CPU-based raytracer made with C++20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published