-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
84 lines (76 loc) · 2.15 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
</head>
<body>
<div id="container">
<canvas id="canvas" width="100vw" height="1000vh">
Canvas is not supported in your browser.
</canvas>
<div id="overlay">
<div>FPS: <span id="fps"></span></div>
<div>
<span>Sound </span>
<i id="unmute" class="fas fa-volume-mute"></i>
<i id="mute" class="fas fa-volume-up"></i>
</div>
<div>
<span>Fullscreen </span>
<i id="expand" class="fas fa-compress"></i>
<i id="compress" class="fas fa-expand"></i>
</div>
<div>
<span>GPU vendor: </span>
<span id="vendor"></span>
</div>
<div>
<span>GPU renderer: </span>
<span id="renderer"></span>
</div>
<div>
<span>Rendered faces: </span>
<span id="faces"></span>
</div>
<div>
<span>Rendered elements: </span>
<span id="elements"></span>
</div>
<div>
<input type="checkbox" id="ibl">
<label for="ibl">IBL</label>
</div>
</div>
</div>
<script src="out/crow-engine.js"></script>
<style>
body {
margin: 0;
}
canvas {
width: 100vw;
height: 100vh;
display: block;
}
.container {
position: relative;
}
#unmute {
display: none;
}
#expand {
display: none;
}
#overlay {
position: absolute;
left: 10px;
top: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
font-family: monospace;
padding: 1em;
}
</style>
</body>
</html>