-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2022-10-14.html
42 lines (32 loc) · 1006 Bytes
/
2022-10-14.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>shader</title>
<link rel="stylesheet" href="style.css">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<canvas></canvas>
<script type="x-shader/x-fragment">
precision mediump float;
uniform vec2 resolution;
uniform float time;
const float PI = 3.14159;
float random (vec2 st) {
return fract(tan(dot(st.xy, vec2(100000.)))*100000.);
}
void main() {
vec2 st = gl_FragCoord.xy/resolution.xy;
if (st.y > .5) st.x += .1 + sin(time)*.1;
float rndb = random(st*1.2+fract(sin(time*.0001)*.1));
if (st.x > .5) st.y = .5;
else st.x += .1;
float rnd = random(floor(st*3. + cos(time*st.x+st.y*.01)*15. + tan(time*.01)*300.));
gl_FragColor = vec4(vec3(floor(rnd+.2)),1.0);
}
</script>
<script src="veda.js"></script>
</body>
</html>