-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (71 loc) · 2.21 KB
/
index.html
File metadata and controls
71 lines (71 loc) · 2.21 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<link rel="shortcut icon" href="#">
<style>
body {
background-color: rgb(150, 150, 150);
font-family: Arial, Helvetica, sans-serif;
}
#config {
position: absolute;
left: 5px;
top: 5px;
background-color: #001d62bd;
color: white;
border-style: solid;
border-color: black;
border-width: 2px;
text-align: center;
border-radius: 25px;
}
#glcanvas {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
overflow: auto;
background-color: white;
}
</style>
<body>
<script src="utils.js" type="text/javascript"></script>
<script src="gl.js" type="module"></script>
<canvas id="glcanvas"></canvas>
<div id="config">
<table>
<tr>
<td>Rotate camera</td>
<td><input id="rotate" type="range" min="0" max="360" step="0.05" value="0" oninput="window.updateRotate()"></td>
</tr>
<tr>
<td>Zoom</td>
<td><input id="zoom" type="range" min="0" max="100" value="0" oninput="window.updateZoom()"></td>
</tr>
<tr>
<td>Rotate light</td>
<td><input id="lightRotate" type="range" min="0" max="360" value="0" oninput="window.updateLightRotate()"></td>
</tr>
<tr>
<td>Projection</td>
<td><select id="projection" oninput="window.updateProjection()">
<option value="perspective">Perspective</option>
<option value="orthographic">Orthographic</option>
</select>
</td>
</tr>
<tr>
<td><label>Display shadow map</label></td>
<td><input type="checkbox" id="shadowmap" onchange="window.displayShadowmap(this)"></td>
</tr>
<tr>
<td>Layers</td>
<td><input type="file" id="layer" accept="application/json" onchange="window.handleFile(this)"></td>
</tr>
</table>
</div>
</body>
</html>