beltegeuse / rustlight-web

WASM experiment with rustlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WASM + Rustlight

In this repository, an experiment of compiling Rustlight with WASM and able to run it inside a web-browser.

Usage

You can compile the rust-glue of Rustlight with

wasm-pack build

Then you can run npm to see the application:

cd www
npm run start

You can then edit the PBRT file in the textbox. In this version, only geometric/material/light information has an impact on the final image. After clicking the Render! button, the image will render with path tracing (NEE and Russian roulette) with one core.

screenshot

You can stop the rendering with the Stop! button.

TODO

  • Export wasm to a webpage (AWS)
  • Add multi-core support
  • Improve interface and JS code
  • Extend scene support (text

About

WASM experiment with rustlight

License:MIT License


Languages

Language:Rust 49.7%Language:HTML 37.7%Language:JavaScript 12.6%