Skip to content

Commit 22e2b5c

Browse files
committed
update
1 parent f186a4e commit 22e2b5c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

2023-10-05-02.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<title>shader</title>
6+
<link rel="stylesheet" href="style.css">
7+
</head>
8+
<body>
9+
<canvas></canvas>
10+
11+
<script type="x-shader/x-fragment">
12+
precision mediump float;
13+
14+
uniform vec2 resolution;
15+
uniform float time;
16+
17+
void main() {
18+
vec2 uv = gl_FragCoord.xy/resolution.xy;
19+
20+
//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;
21+
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;
22+
gl_FragColor = vec4(vec3(c), 1.);
23+
}
24+
</script>
25+
26+
<script src="veda.js"></script>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)