-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (114 loc) · 4.05 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>WebGL Experiment: Simplex Noise 3d Navigator</title>
<!-- disable the zoom -->
<meta content='width=device-width, initial-scale=0.5, maximum-scale=0.5, user-scalable=0' name='viewport' />
<style>
body {
background-color: #0F0F0F;
color: #8F8F8F;
border: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: arial;
}
#main-canvas {
border: none;
position:relative;
left:0px;
top:0px;
width:800px;
height:600px;
}
#error-text {
position: relative;
left: 10px;
top: 10px;
margin: 0px auto; /* horizontally centered */
padding: 0px none;
border: 0px none;
font-size: 20px;
color: white;
font-family: 'Lucida Console', Monaco, monospace;
text-align: center;
outline: none;
display: none;
}
#main_table {
margin: auto;
}
#main_table td {
margin-left: auto;
}
.description h4 {
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
margin-bottom: 5px;
}
.description p,
.description ul {
margin-left: 10px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
.button {
background-color: #666; /* Green */
border: none;
color: #ddd;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.redText {
color: #C88;
}
</style>
</head>
<body>
<table id="main_table" border='1'>
<tr>
<td colspan="5">
<canvas id="main-canvas" width="800" height="600"></canvas>
<p id="error-text">Loading</p>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td colspan="1">
<button id="gui_fullscreen" class="button">Fullscreen mode</button>
</td>
<td colspan="1">
<button id="gui_toggle_start" class="button">Toggle start/stop</button>
</td>
<td>
<p class="redText">Source Code:<br><a href="https://github.com/GuillaumeBouchetEpitech/webgl_experiment" class="redText">Github Link</a></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="5" class="description">
<h4>WebGL Experiment: Simplex Noise 3D Cave Explorer</h4>
<p>Deterministic Procedurally Generated Cave:</p>
<ul>
<li>Reloading the page will always generate the same cave.</li>
<li>The cave is generated on the fly, cave chunks that are too far away are discarded and reused.</li>
<li>Going back to a previously visited location will re-generate it as it was at the first visit.</li>
</ul>
</td>
</tr>
</table>
<script src="dist/bundle.js"></script>
</body>
</html>