-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
42 lines (39 loc) · 1.12 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
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
margin: 0;
}
canvas {
display: block;
width: 100vw;
height: 100vh;
}
.text {
position: absolute;
top: 0;
left: 10px;
color: white;
font-family: Arial, Helvetica, sans-serif;
white-space: pre-line;
}
</style>
<title>Terrain Editor</title>
</head>
<body>
<canvas id="canvas"></canvas>
<div class="text">
Click and drag to orbit
Scroll to zoom
Right Click drag to pan
</div>
<script src="lib/three.min.js"></script>
<script src="lib/orbit-controls.min.js"></script>
<script src="lib/simplex-noise.min.js"></script>
<script src="marching-cubes.js"></script>
<script src="main.js"></script>
</body>
</html>