File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments