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

https://github.com/statusfailed/weekend-raytracer


https://github.com/statusfailed/weekend-raytracer

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Weekend Raytracer

This is a Rust implementation of the code from
[Raytracing in One Weekend][raytracing-in-one-weekend].

[raytracing-in-one-weekend]: https://raytracing.github.io/books/RayTracingInOneWeekend.html

Here's the final image of the tutorial (image 13-1) produced by this raytracer:

![final result of raytracer](./img/13-1.png)

# Building

cargo build

# Running

`main` will output a ppm file to stdout, so if you want a png, you can do this:

cargo run --release > out.ppm && convert out.ppm out.png