forked from Li-Jia-Jun/WebGPU-Butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (36 loc) · 772 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>WebGPU Butterfly</title>
<style>
html,
/* body {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
background: rgb(255, 255, 255);
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
} */
h1 {text-align: center;}
canvas{
display: block;
margin: 0 auto;
background: rgb(255, 255, 255);
}
</style>
</head>
<body>
<canvas id="gfx">
</canvas>
<p id="camera_pos"></p>
<script type="text/javascript" src="dist/main.js"></script>
</body>
</html>