Skip to content
A port of the famous business card raytracer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.toml
README.md
example.png

README.md

Businesscard Raytracer, now in Rust!

This is a port of the well known "Bussiness Card Raytracer" from C++ to Rust. It's source and a breakdown of how it works can be found here.

Instructions

Run the following in this directory:

cargo build --release
./target/release/raytracer > out.ppm

This will build and run the program, causing it to generate an image at out.ppm. To convert this image to .png, one can use the convert utility. An example of the output image looks like this:

Example of raytracer output

You can’t perform that action at this time.