-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
39 lines (36 loc) · 1.13 KB
/
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
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learn WGPU</title>
<style>
canvas {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
background-color: black;
}
</style>
</head>
<body id="wasm-example">
<p>WebGPU demo of a sky raytracer</p>
<p>This displays a unresolued rendering of the <a href="https://fr.wikipedia.org/wiki/Digitized_Sky_Survey">DSS survey</a> images</p>
<p>Commands</p>
<ul>
<li>Left/right arrow to change the sky projection</li>
<li>Enter for fullscreen mode</li>
</ul>
<canvas id="canvas"></canvas>
<script type="text/javascript" src="./dist/wgpu_sky_rendering.umd.js" charset="utf-8"></script>
<script type="module">
//import init from "./dist/wgpu_sky_rendering.umd.js";
wgpu_sky_rendering.default().then(() => {
console.log("WASM demo loaded");
});
</script>
</body>
</html>