-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrtTest.html
82 lines (64 loc) · 1.43 KB
/
rtTest.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
<html>
<head>
<title>MY SHARDS | EZRA MILLER</title>
<style>
body{
background: black;
margin: 0;
}
.path {
-webkit-stroke: "#ffffff";
stroke-dasharray: 600;
stroke-dashoffset: 0;
-webkit-animation: dash 1s ease-in alternate infinite;
}
@-webkit-keyframes dash {
from {
stroke-dashoffset: 600;
}
to {
stroke-dashoffset: 0;
}
}
svg{
display: none;
margin: auto;
margin-top: 40vh;
z-index: 1;
}
</style>
</head>
<body>
<script id="fragment_shader_screen" type="x-shader/x-fragment">
varying vec2 vUv;
uniform sampler2D tDiffuse;
void main() {
gl_FragColor = texture2D( tDiffuse, vUv );
}
</script>
<script id="fragment_shader_pass_1" type="x-shader/x-fragment">
varying vec2 vUv;
uniform float time;
void main() {
float r = vUv.x;
if( vUv.y < 0.5 ) r = 0.0;
float g = vUv.y;
if( vUv.x < 0.5 ) g = 0.0;
gl_FragColor = vec4( r, g, time, 1.0 );
}
</script>
<script id="vertexShader" type="x-shader/x-vertex">
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
</script>
<div id="container"></div>
<script src="js/three.min.js"></script>
<script src="js/BinaryLoader.js"></script>
<script src="js/Detector.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/rtTest.js"></script>
</body>
</html>