-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
56 lines (43 loc) · 988 Bytes
/
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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title>Generative VJ2</title>
<style>
body { margin: 0; }
#mainDiv
{
position: relative;
}
#mainDiv #fftDiv
{
position: absolute;
font-family: Arial;
}
*{
cursor:
url(mousePointer.png) 2 2,
pointer;
}
</style>
</head>
<body bgcolor="#000000">
<script type="x-shader/x-vertex" id="vertexshader">
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<script type="x-shader/x-fragment" id="fragmentshader">
uniform sampler2D baseTexture;
uniform sampler2D bloomTexture;
varying vec2 vUv;
void main() {
gl_FragColor = ( texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );
}
</script>
<script type="module" src="/main.js">
</script>
</body>
</html>