[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

examples

All the demos can be run using cargo run --example $name

Running the main demo in the Web Browser

To run the demo as a WASM example, a few steps are needed:

cargo install wasm-bindgen-cli
cargo build --target=wasm32-unknown-unknown --example demo
wasm-bindgen ./target/wasm32-unknown-unknown/debug/examples/demo.wasm --out-dir examples/generated --target web

cd examples/
python3 -m http.server

Then browse to http://localhost:8000/ with a WebGL enabled browser.