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

https://github.com/jackrekirby/ray-tracing

An implementation of Ray Tracing in One Weekend using Rust, with a web user interface to build scenes using WASM.
https://github.com/jackrekirby/ray-tracing

p5 rayon raytracing-in-one-weekend rust tweakpane wasm

Last synced: 3 months ago
JSON representation

An implementation of Ray Tracing in One Weekend using Rust, with a web user interface to build scenes using WASM.

Awesome Lists containing this project

README

          

# Ray Tracing

An implementation of [Ray Tracing in One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) using Rust, with a web user interface to build scenes using WASM, [p5](https://p5js.org) and [Tweakpane](https://cocopon.github.io/tweakpane/).

To build the web version run [lib.rs](src/lib.rs) by calling: `wasm-pack build --target web`.

To build the native version run [main.rs](src/main.rs) by calling: `cargo run --bin raytracer_bin --release`. The native version utilises multithreading via [Rayon](https://github.com/rayon-rs/rayon). It outputs an image.ppm file in project directory.

Check out the website: https://jackrekirby.github.io/Ray-Tracing/