yum/demomo

A graphics engine built on wgpu.

git clone https://git.yummers.dev/yum/demomo

yumAdd support for user-defined uniforms8debfd1

master
582 B27 linesraw
1<!doctype html>
2<html>
3    <head>
4        <style>
5            body {
6                margin: 0;
7            }
8            #meow {
9                display: block;
10                width: 100vw;
11                height: 100vh;
12            }
13        </style>
14    </head>
15  <body>
16    <canvas id="meow"></canvas>
17    <script type="module">
18      const canvas = document.getElementById("meow");
19      canvas.addEventListener("dragstart", event => {
20        event.preventDefault();
21      });
22
23      import init from "./pkg/hello_web.js";
24      await init();
25    </script>
26  </body>
27</html>