🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
612 B

  1. # Experimental JavaScript port of TinyEXR
  2. Using Emscripten.
  3. ## How to compile
  4. edit `compile_to_js.sh`, then
  5. ```
  6. ./compile_to_js.sh
  7. ```
  8. ## How to run test
  9. Requires node.js
  10. ```
  11. $ node test.js
  12. ```
  13. ## How to run a browser example
  14. Edit EXR file in `index.html`
  15. Copy a EXR file to this directory(default = asakusa.exr).
  16. (NOTE: Chrome does not allow reading a file from parent path(e.g. `../../asakusa.exr`).
  17. Launch http server, e.g.,
  18. ```
  19. $ python3 -m http.server
  20. ```
  21. Open `http://localhost:8000` with an browser.
  22. ## TODO
  23. * [x] Write HTML5 Canvas drawing JS code from Float32Array(
  24. * [ ] Pollish JS API.