-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.61 KB
/
index.html
File metadata and controls
50 lines (50 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>GPU test</title>
<script type="module" src="src/main.js"></script>
<style>
.main {
display: flex;
}
.settings {
display: grid;
grid-template-columns: 10fr 10fr 2fr;
grid-template-rows: repeat(10, 1.5em);
}
</style>
</head>
<body style="margin: 0;">
<div class="main">
<canvas id="result_canvas"></canvas>
<div class="settings">
<span style=" grid-column: 1 / 2;">FPS: </span>
<span id="fps" style=" grid-column: 2 / 4;">30</span>
<span style=" grid-column: 1 / 2;">UPS: </span>
<span id="ups" style=" grid-column: 2 / 4;">30</span>
<label>updatePerFrame: </label>
<input type="number" id="updatePerFrame" step="1" min="1"/>
<button>Set</button>
<label>feroDecay: </label>
<input type="number" id="feroDecay" step="0.001"/>
<button>Set</button>
<label>speed: </label>
<input type="number" id="speed" step="0.1"/>
<button>Set</button>
<label>viewDistance: </label>
<input type="number" id="viewDistance" step="1"/>
<button>Set</button>
<label>viewAngle: </label>
<input type="number" id="viewAngle" step="0.01"/>
<button>Set</button>
<label>turnForce: </label>
<input type="number" id="turnForce" step="0.01"/>
<button>Set</button>
<label>showAgent: </label>
<input type="number" id="showAgent" step="1" min="0" max="1"/>
<button>Set</button>
</div>
</div>
</body>
</html>