-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
47 lines (44 loc) · 2.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Fragment Shader Path Tracer</title>
<link rel="stylesheet" type="text/css" href="application.css">
<script type="module" src="vector.js"></script>
<script type="module" src="utility.js"></script>
<script type="module" src="obj_loader.js"></script>
<script type="module" src="mtl_loader.js"></script>
<script type="module" src="texture_packer.js"></script>
<script type="module" src="env_sampler.js"></script>
<script type="module" src="bvh.js"></script>
</head>
<body>
<h3 id="banner"></h3>
<form id="scene-params">
<label for="counter">Current Samples</label><br>
<input id="counter" type="number" readonly><br>
<label for="max-samples">Max Samples</label><br>
<input id="max-samples" type="number" value="2000"><br>
<label for="focal-depth">Focal Depth</label><br>
<input id="focal-depth" type="number" value="2.0" step="0.001"><br>
<label for="aperture-size">Aperture Size</label><br>
<input id="aperture-size" type="number" value="0.02" step="0.001"><br>
<label for="eye-pos">Camera Position</label><br>
<input id="eye-pos" type="text"><br>
<label for="camera-dir">Camera Direction</label><br>
<input id="camera-dir" type="text"><br>
<label for="env-theta">Env Theta</label><br>
<input id="env-theta" value="0" type="range" min="0" max="1" step="0.01"><br>
<label for="exposure">Exposure</label><br>
<input id="exposure" value="1" type="range" min="0" max="6" step="0.01"><br>
<label for="saturation">Saturation</label><br>
<input id="saturation" value="1" type="range" min="0" max="6" step="0.01"><br>
<label for="denoise">Firefly Filter</label><br>
<input id="denoise" type="checkbox"></input><br>
<label for="sigma">Firefly Sigma</label><br>
<input id="sigma" value="2" type="range" min="1" max="8" step="0.01"></input><br>
</form>
<canvas id="trace"></canvas>
<script type="module" src="main.js"></script>
</body>
</html>