summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md')
-rw-r--r--Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md b/Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md
new file mode 100644
index 00000000000..9132541327e
--- /dev/null
+++ b/Build/source/utils/asymptote/cudareflect/tinyexr/experimental/js/README.md
@@ -0,0 +1,38 @@
+# Experimental JavaScript port of TinyEXR
+
+Using Emscripten.
+
+## How to compile
+
+edit `compile_to_js.sh`, then
+
+```
+./compile_to_js.sh
+```
+
+## How to run test
+
+Requires node.js
+
+```
+$ node test.js
+```
+
+## How to run a browser example
+
+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.
+
+## TODO
+
+* [x] Write HTML5 Canvas drawing JS code from Float32Array(
+* [ ] Pollish JS API.