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.
- Host: GitHub
- URL: https://github.com/jackrekirby/ray-tracing
- Owner: Jackrekirby
- License: bsd-3-clause
- Created: 2022-06-02T22:12:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T19:07:24.000Z (about 4 years ago)
- Last Synced: 2025-02-08T03:32:24.686Z (over 1 year ago)
- Topics: p5, rayon, raytracing-in-one-weekend, rust, tweakpane, wasm
- Language: Rust
- Homepage: https://jackrekirby.github.io/Ray-Tracing/
- Size: 13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/