-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (32 loc) · 802 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
37
38
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="Matic Leva" />
<meta name="viewport" content="width=device-width">
<title></title>
<style>
html, body {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="third_party/three.js"></script>
<script src="objects.js"></script>
<script src="script.js"></script>
<script>
let scene = SetScene();
let terrain = new Terrain(32, 0.5);
scene.add(terrain);
terrain.generateTerrain();
document.addEventListener('keyup', (e) => {
if (e.which == 82) {
terrain.generateTerrain();
}
})
</script>
</body>
</html>