Skip to content

TheRustyStorm/Raytracer

Repository files navigation

Raytracer

A Raytracer written in pure Rust. Mostly based on "Raytracing in a weekend" from Peter Shirley. Added support for multithreading and improved speed a little.

Configuration

In main.rs search for the creation of spheres, you have three possible materials for usage:

  • Lambertian
  • Metal
  • Dielectric

Adapt the spheres or add new ones if you like.

Exection

Run with

cargo run --release

Why another?

The point in writing another Raytracer for me was to check out the cgmath crate.

Examples

Here are some sample pictures:

About

A Raytracer written in pure Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages