An open API service indexing awesome lists of open source software.

https://github.com/printfn/raytracer

Multithreaded cross-platform raytracer in C++
https://github.com/printfn/raytracer

Last synced: 3 months ago
JSON representation

Multithreaded cross-platform raytracer in C++

Awesome Lists containing this project

README

        

# Raytracer

This code has been tested on Linux and macOS, and with both Clang and GCC.

The following dependencies are *required*:

* CMake (to build the project)
* libpng
* X11 (available on macOS via XQuartz, or `sudo apt install libx11-dev` on Debian)

CMake should be able to find libpng and X11 automatically.

Instructions for building:

```bash
mkdir build
cd build
cmake ..
make
./raytracer ../scenes/snowman.txt
```

The `raytracer` executable accepts the following command-line options:

```
--no-gui Disable the X11 GUI
-o Change the output filename to
-j Use threads for rendering
```