Using Emscripten.
edit compile_to_js.sh
, then
./compile_to_js.sh
Requires node.js
$ node test.js
Edit EXR file in index.html
Copy a EXR file to this directory(default = asakusa.exr).
(NOTE: Chrome does not allow reading a file from parent path(e.g. ../../asakusa.exr
).
Launch http server, e.g.,
$ python3 -m http.server
Open http://localhost:8000
with an browser.
- Write HTML5 Canvas drawing JS code from Float32Array(
- Pollish JS API.