-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-10-05-02.html
30 lines (25 loc) · 964 Bytes
/
2023-10-05-02.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
<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 = step(sin(time*uv.x*2. + tan(time*0.1)*.01 + cos(time*.1+uv.y)*1.4) - cos(uv.y+time), cos(time*.05*uv.x+uv.y*4.)*.3) + sin(time*uv.x+tan(uv.y))*.5;
float c = sin(time*uv.y*2.+uv.x*time*uv.y + tan(time*0.01)*.01 + cos(time*.1+uv.y+uv.x)*2.) - cos(uv.x+time) + cos(time*.05*uv.x+uv.y*4.)*.3 + sin(time*uv.y+tan(uv.y))*.5;
gl_FragColor = vec4(vec3(c), 1.);
}
</script>
<script src="veda.js"></script>
</body>
</html>