-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (50 loc) · 1.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script type="module" src="/src/index.ts"></script>
<style>
body {
margin: 0;
overflow: hidden;
}
.hud {
position: absolute;
left: 0;
font-size: 12px;
z-index: 10;
}
.top {
top: 0;
padding: 10px;
}
.stats {
bottom: 0;
color: white;
background-color: rgba(0, 0, 0, 0.3);
padding: 5px 20px;
display: flex;
font-family: Arial, Helvetica, sans-serif;
}
.stats > div {
margin-right: 15px;
}
</style>
</head>
<body>
<canvas id="canvas" width="400" height="400"></canvas>
<div class="hud top">
<select id="world-selector"></select>
<button id="reset">reset</button>
</div>
<div class="hud stats">
<div>Main rays: <span id="main-rays"></span></div>
<div>All rays: <span id="rays"></span></div>
<div>FPS: <span id="fps"></span></div>
<div>Ray test: <span id="ray-test"></span></div>
<div>Ray intersection: <span id="ray-intersect"></span></div>
</div>
</body>
</html>