-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHorizontalBlur.html
42 lines (29 loc) · 932 Bytes
/
HorizontalBlur.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script type="importmap">
{
"imports": {
"three": "../libs/build/three.module.js",
"three/addons/": "../libs/examples/jsm/",
"oops": "../src/oops.js"
}
}
</script>
</head>
<body>
<script type="module">
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
import { HorizontalBlurShader } from 'three/addons/shaders/HorizontalBlurShader.js';
import { renderer, randomBalls, animationLoop } from './examples.js';
import { Effects } from 'oops';
var effects = new Effects( renderer )
.addEffect( HorizontalBlurShader );
var gui = new GUI( { title: '<big><em>Horizontal Blur</em></big>' } );
randomBalls( );
animationLoop( effects );
</script>
</body>
</html>