-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (87 loc) · 2.73 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
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin: 0; padding: 0; width: 100%; height: 100%;
}
canvas {
position: absolute; top: 0; left: 0;
}
#controls {
position: absolute; top: 0; right: 0; z-index: 4;
padding: 10px;
background: rgba(0, 0, 0, 0.2);
color: white;
font-family: sans-serif;
font-weight: 300;
font-size: 14px;
}
#controls div {
margin-top: 10px;
}
#controls input {
background: transparent;
border: 0;
border-bottom: 1px solid white;
color: white;
text-align: right;
width: 100px;
font-size: 14px;
font-weight: 300;
outline: none;
text-rendering: geometricPrecision;
}
#controls button {
float: right;
}
#controls a {
display: none;
}
#controls #content {
margin: 0;
}
#controls.hide #content {
display: none;
}
#controls.hide #show {
display: inline;
cursor: pointer;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r71/three.min.js"></script> -->
<script src="node_modules/three/build/three.js"></script>
<script src="node_modules/three/examples/js/shaders/SSAOShader.js"></script>
<script src="node_modules/three/examples/js/shaders/CopyShader.js"></script>
<script src="node_modules/three/examples/js/postprocessing/EffectComposer.js"></script>
<script src="node_modules/three/examples/js/postprocessing/RenderPass.js"></script>
<script src="node_modules/three/examples/js/postprocessing/ShaderPass.js"></script>
<script src="node_modules/three/examples/js/postprocessing/MaskPass.js"></script>
<script src="quadtree.js"></script>
<script src="poisson-disc.js" async></script>
</head>
<body>
<div id="controls" class="hide">
<div id="content">
<input type="file" id="file">
<div>Proximity</div>
<input type="number" id="radius" value="10">
<div>Precision</div>
<input type="number" id="candidates" value="10">
<div>Opacity</div>
<input type="range" id="opacity" value="1" max="1" min="0" step="0.01">
<div>
<label>Ambient Occlusion
<input type="checkbox" id="ssao" checked="checked">
</label>
</div>
<div>
<button id="run">run</button>
<button id="hide">hide</button>
</div>
</div>
<a id="show">options</a>
</div>
</body>
</html>