forked from gkjohnson/three-gpu-pathtracer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepthOfField.html
56 lines (48 loc) · 1.04 KB
/
depthOfField.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
<html>
<head>
<title>Camera Depth of Field</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;
}
#model-info {
position: absolute;
bottom: 0;
left: 0;
font-family: 'Courier New', Courier, monospace;
color: white;
pointer-events: none;
}
#samples, #credits, #instructions {
opacity: 0.75;
background-color: rgba( 0.0, 0.0, 0.0, 0.5 );
padding: 5px;
display: inline-block;
}
#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>
<script src="./depthOfField.js" type="module"></script>
</body>
</html>