parbo / rust-raytracer-wasm

Wasm version of https://github/parbo/rust-raytracer

Home Page:https://rust-raytracer-wasm.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasm raytracer

I got this up and running by copying what was done here: https://github.com/migerh/rustwasm-gif

The regular wasm-pack workflow doesn't support web workers just yet.

Try it

https://rust-raytracer-wasm.now.sh/

Click on snowgoon.gml or chess.gml for nice example images.

Building

Prerequisites

# install wasm-bindgen command line tools
cargo install wasm-bindgen-cli

Build the project

To build the project you have to compile the rust code to a wasm module, install a few JavaScript tools and libraries and then you can start the webpack dev server:

npm run build

# install javascript dependencies
npm install

# run dev server
npm run serve

Now you can open your browser and go to http://localhost:8080.

Deploy the project

Prerequisites

# install now-cli
npm install -g now

Deploy

now --prod

License

This project is licensed under the MIT license.

About

Wasm version of https://github/parbo/rust-raytracer

https://rust-raytracer-wasm.now.sh/

License:MIT License


Languages

Language:Game Maker Language 92.5%Language:Rust 3.0%Language:JavaScript 2.5%Language:HTML 1.9%