-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (43 loc) · 1.13 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
<style>
body {
font-family: monospace;
margin: 0;
padding: 0;
}
html, body, #app, canvas {
display: block;
height: 100vh;
}
.controls-container {
position:absolute;
border: 1px solid lightgray;
margin: 10px;
padding: 10px;
background: #eee;
}
</style>
</head>
<body>
<div class="controls-container">
<p>
<label>Sphere Radius</label>
<input type='range' min=0 max=2 step=0.01 value=1
oninput='sphere.p.radius.set(event.target.value)'></input>
</p>
<p>
<label>Bias</label>
<input type='range' min=0 max=1 step=0.01 value=0.1
oninput='occlusion.p.bias.set(event.target.value)'></input>
</p>
</div>
<div id="app"></div>
<script type="module" src="/src/example.ts"></script>
</body>
</html>