-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (26 loc) · 1004 Bytes
/
index.html
File metadata and controls
38 lines (26 loc) · 1004 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Base Template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&family=Space+Mono&display=swap" rel="stylesheet">
</head>
<body>
<script src="https://www.spacetimemeta.io/sdk/v1/bundle.min.js"></script>
<script type="module">
// start by initializing a virtual environment
const virtualEnvironment = new VirtualEnvironment({
terrain: {
url: "./assets/terrain.glb"
}
});
// start the animation loop
animate();
function animate() {
VIRTUAL_ENVIRONMENT.update();
requestAnimationFrame(animate);
}
</script>
</body>
</html>