-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (50 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mine.js</title>
<link rel="icon" href="images/UI/icon.bmp"/>
<style>
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
#fpsLabel {
position: absolute;
right: 20px;
top: 20px;
color: #ff00ff;
cursor: default;
}
</style>
<!--Simplex noise-->
<script src="node_modules/simplex-noise/simplex-noise.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplex-noise/2.4.0/simplex-noise.js"></script>
<!--Main Babylon-->
<script src="node_modules/babylonjs/babylon.js"></script>
<script src="https://preview.babylonjs.com/babylon.js"></script>
<script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>
<!--UI Babylon-->
<script src="node_modules/babylonjs-gui/babylon.gui.js"></script>
<script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script>
<!--Pep for babylon-->
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
</head>
<body>
<canvas id="renderCanvas" touch-action="none"></canvas>
<!--//touch-action="none" for best results from PEP-->
<b>
<div id="fpsLabel"></div>
</b>
</body>
<script type="module" src="main.js"></script>
</html>