-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (67 loc) · 1.56 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
<!-- Coped from https://github.com/gkjohnson/three-gpu-pathtracer/blob/main/example/areaLight.html -->
<html>
<head>
<title>Area Light 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, #credit, #model-name {
opacity: 0.5;
background-color: rgba( 0.0, 0.0, 0.0, 0.5 );
padding: 5px;
display: inline-block;
}
a {
color: white;
}
#loading {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: 'Courier New', Courier, monospace;
}
#description {
position: absolute;
top: 0;
width: 100%;
color: white;
font-family: monospace;
text-align: center;
padding: 5px 0;
pointer-events: none;
}
</style>
</head>
<body>
<div id="loading">LOADING</div>
<div id="description">
Rendering with area lights and multiple importance sampling.
</div>
<div id="info">
<div>
<div id="samples">--</div>
</div>
<div>
<div id="credit">Model courtesy of "Virtual Museums of Małopolska"</div>
</div>
<div>
<div id="model-name">“Mercury about to kill Argos” sculpture by B. Thorvaldsen </div>
</div>
</div>
<script src="./areaLight.js" type="module"></script>
</body>
</html>