forked from Welko/rtvis-webgpu-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (44 loc) · 1.25 KB
/
index.html
File metadata and controls
52 lines (44 loc) · 1.25 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<title>RTVis WebGPU Tutorial</title>
<link rel="icon" href="data:image/png;base64,iVBORw0KGgo=">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
background: #c6339e;
}
</style>
</head>
<body>
<!-- GUI -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.9/dat.gui.min.js"></script>
<!-- Util -->
<script src="lib/mipmap.js"></script>
<script src="tree.js"></script>
<script src="loader.js"></script>
<!-- Shaders -->
<script src="shaders/add.js"></script>
<script src="shaders/aggregate.js"></script>
<script src="shaders/image.js"></script>
<script src="shaders/markers.js"></script>
<script src="shaders/heatmapCompute.js"></script>
<script src="shaders/heatmapRender.js"></script>
<!-- Tutorial -->
<script src="tutorial.js"></script>
<script>
window.addEventListener("load", () => {
// Initialize GUI
const gui = new dat.GUI({ name: document.title });
// Initialize canvas
const canvas = document.createElement("canvas");
document.body.appendChild(canvas);
// Start tutorial
const tutorial = new Tutorial(gui, canvas);
tutorial.start();
});
</script>
</body>
</html>