diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-18 00:41:11 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-18 00:41:11 -0500 |
| commit | efa2b345a14a6b34f51671fff715ccf5d6d15559 (patch) | |
| tree | 20b7deaa20d52cf1417101bf65fa36ea00cf003f /templates/api | |
| parent | 5453326ffa7b59d5a414eb0b029667f3d9537793 (diff) | |
Actually what if we just included it in the API templates like we're
supposed to :3
Diffstat (limited to 'templates/api')
| -rw-r--r-- | templates/api/throwshade.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/api/throwshade.html b/templates/api/throwshade.html new file mode 100644 index 0000000..2bf006a --- /dev/null +++ b/templates/api/throwshade.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <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"> + <title>LLLLColonq ShaderVerse Prime: The NEXTus (shado-realm)</title> + <link rel="icon" href="./assets/mrgreen.png"> + <link rel="stylesheet" type="text/css" href="./main.css"> + <script type="module"> +CONFIG_SUBST + globalThis.mode = "throwshade"; + </script> + <script type="module"> + import init, * as bindings from "./newton/throwshade.js"; + const wasm = await init({ module_or_path: "./newton/throwshade.wasm" }); + window.wasmBindings = bindings; + console.log("initialized, starting..."); + window.wasmBindings.main_js(); + </script> + <script type="module" src="./main.js"></script> + </head> + <body id="lcolonq-throwshade"> + <div id="teleia-parent" class="lcolonq-throwshade-canvas"></div> + <div id="lcolonq-throwshade-bottom"> + <div id="lcolonq-throwshade-bottom-left"> + <textarea id="lcolonq-throwshade-textarea"> +vec4 shade(vec2 cs) { + return vec4(0.0, 1.0, 0.0, 1.0); +} +</textarea> + </div> + <div id="lcolonq-throwshade-bottom-right"> + <img id="lcolonq-throwshade-button-test" src="./assets/test.gif"></img> + <img id="lcolonq-throwshade-button-submit" src="./assets/upload.gif"></img> + </div> + </div> + </body> +</html> |
