-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-11-24.html
35 lines (30 loc) · 934 Bytes
/
2023-11-24.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
<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;
void main() {
vec2 uv = gl_FragCoord.xy/resolution.xy;
float c = 0.;
for (float i = 1.; i < 4.; i++) {
c += smoothstep(.499, .501, sin(uv.x+i/50. + sin(time*i/3.)*.2) + cos(uv.y*uv.x+i+time)*(.1*i));
}
for (float i = 1.; i < 4.; i++) {
c -= smoothstep(.499-i/3., .501+i/3., sin(uv.x + sin(time*i/3.)*.2) + cos(uv.y*uv.x+i+time)*(.1*i));
}
gl_FragColor = vec4(vec3(c), 1.);
}
</script>
<script src="veda.js"></script>
</body>
</html>