Web versions:
There are problems with running WASM code on certain systems. All Apple devices (including phones) are tested and should work.
This is real-time ray tracing app with water simulation capabilities.
It uses WGPU to be able to compile to Webassembly. Theoretically, this makes it cross platform. However, Webassembly support across browsers and systems leaves much to be desired.
This app was build as course project, and you may find explanatory node (in russian) in docs directory.
Main algorithms used:
- Naive Monte-carlo ray tracing
- Reverse reprojection caching
- Gaussian blur
- Fast voxel traversal algorithm
For local build, simply run
cargo run
There is a problem with
ahash
crate, which refuses to compile on some versions of Rust on M1.1.70-aarch64-apple-darwin
toolchain is tested.
To compile webassembly, run
wasm-pack build --target web
You may also need to install wasm-pack.