-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPathTrace.html
76 lines (64 loc) · 1.7 KB
/
PathTrace.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
<!DOCTYPE html>
<html>
<head>
<title>PBR Path Tracing</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
html,
body {
margin: 0;
padding: 0;
background-color: #111;
}
#info {
position: absolute;
bottom: 0;
left: 0;
font-family: 'Courier New', Courier, monospace;
color: white;
pointer-events: none;
}
#samples,
#credits {
opacity: 0.5;
background-color: rgba(0.0, 0.0, 0.0, 0.5);
padding: 5px;
display: inline-block;
}
#loading {
position: absolute;
opacity: 0.5;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: 'Courier New', Courier, monospace;
}
</style>
</head>
<!-- Import maps polyfill -->
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "./build/three.module.js",
"three-addons/": "./examples/jsm/",
"three/examples/":"./examples/",
"three-mesh-bvh":"./three-mesh-bvh-master/src/index.js",
"three-mesh-bvh/":"./three-mesh-bvh-master/"
}
}
</script>
<body>
<div id="loading">LOADING</div>
<div id="info">
<div>
<div id="samples">--</div>
</div>
<div>
<div id="credits">--</div>
</div>
</div>
<script src="./PathTrace.js" type="module"></script>
</body>
</html>