summaryrefslogtreecommitdiff
path: root/crates/shader/index.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-08-15 04:45:02 -0400
committerLLLL Colonq <llll@colonq>2025-08-15 04:45:02 -0400
commit891a8a79f200413f2b1ac6e158f26163d6c66f64 (patch)
treed2ef73072d2c5c8a9661c5a606a7049e3bf35b8e /crates/shader/index.html
parente4ded2c09e6c378040f80e80886aa9c087fe14b4 (diff)
Refactor overlay
Diffstat (limited to 'crates/shader/index.html')
-rw-r--r--crates/shader/index.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/crates/shader/index.html b/crates/shader/index.html
new file mode 100644
index 0000000..25b23bc
--- /dev/null
+++ b/crates/shader/index.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+ <head>
+ <meta charset="UTF-8">
+ <link data-trunk rel="rust" data-wasm-opt="2" data-target-name="newton_throwshade" />
+ <base data-trunk-public-url />
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#404040">
+ <link rel="icon" href="data:;base64,iVBORw0KGgo=">
+ <title>teleia</title>
+ </head>
+ <body>
+ <script>
+ addEventListener("TrunkApplicationStarted", async (event) => {
+ console.log("initialized, starting...");
+ window.wasmBindings.main_js();
+ window.wasmBindings.set_shader(" vec4 shade(vec2 cs) {return vec4(cs.x, 0.0, 0.0, 1.0);} ");
+ });
+ </script>
+ <div id="teleia-parent"></canvas>
+ </body>
+</html>