diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-17 22:54:50 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-17 22:54:50 -0500 |
| commit | d7c175733194b406990cb0113aab2b26836e8edb (patch) | |
| tree | c95a478ce568eeffd2186548453acb7f86da17ee /crates/throwshade/index.html | |
| parent | 80ae56c9e28454cb351b0ad3217adc2484e67107 (diff) | |
Set the shader from JS
Diffstat (limited to 'crates/throwshade/index.html')
| -rw-r--r-- | crates/throwshade/index.html | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/crates/throwshade/index.html b/crates/throwshade/index.html index c3d8719..63e07ae 100644 --- a/crates/throwshade/index.html +++ b/crates/throwshade/index.html @@ -1 +1,24 @@ -<link data-trunk rel="rust" data-wasm-opt="2" data-target-name="throwshade" /> +<!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="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("hi"); + }); + </script> + <div id="teleia-parent"></canvas> + </body> +</html> |
