forked from Domenicobrz/Blurry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (61 loc) · 2.26 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="author" content="3D Viewer" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="main.css" rel="stylesheet" type="text/css" />
<script src="libs/dependencies/three.js"></script>
<script src="libs/dependencies/OrbitControls.js"></script>
<script src="libs/dependencies/jquery.js"></script>
<script src="libs/dependencies/gif.js"></script>
<!-- globals needs to be included before every shader -->
<script src="libs/globals.js"></script>
<script src="libs/geometries/line.js"></script>
<script src="libs/geometries/quad.js"></script>
<script src="libs/shaders/shaderpass.js"></script>
<script src="libs/shaders/postproc.js"></script>
<script src="libs/shaders/line.js"></script>
<script src="libs/shaders/quad.js"></script>
<!-- utils needs to be placed BEFORE curlNoise.js -->
<script src="libs/utils.js"></script>
<script src="libs/perlinNoise.js"></script>
<script src="libs/curlNoise.js"></script>
<script src="libs/createScene.js"></script>
<script src="libs/main.js"></script>
<style>
.controls {
position: absolute;
bottom: 0;
left: 0;
color: white;
font-size: 0.8em;
padding: 1em;
opacity: 0;
transition: opacity .2s;
z-index: 2;
}
.controls.active {
opacity: 0.7;
}
.controls p {
font-family: Helvetica;
margin: 0.45em;
}
.controls p span {
color: #ff5677;
}
</style>
</head>
<body>
<div class="controls active">
<p>press <span>o</span> or <span>p</span> to change focal length</p>
<p>press <span>k</span> or <span>l</span> to change bokeh strength</p>
<p>press <span>v</span> or <span>b</span> to change exposure</p>
<p>press <span>u</span> or <span>i</span> to change distance attenuation</p>
<p>press <span>m</span> to change focal strength equation</p>
<p>press <span>h</span> to hide this menu</p>
</div>
</body>
</html>