Skip to content

Commit db7e460

Browse files
committed
voila qui est fait
1 parent e1f9011 commit db7e460

36 files changed

+1430
-569
lines changed

assets/glsl/cable/cable.frag

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
precision highp float;
2+
uniform float uTime;
3+
uniform vec3 uColor;
4+
5+
void main() {
6+
gl_FragColor = vec4(uColor, 1.);
7+
}

assets/glsl/cable/cable.vert

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
uniform float uTime;
2+
precision highp float;
3+
4+
uniform mat4 modelViewMatrix; // optional
5+
uniform mat4 projectionMatrix; // optional
6+
7+
attribute vec3 position;
8+
attribute vec4 color;
9+
10+
varying vec3 vPosition;
11+
varying vec4 vColor;
12+
13+
void main() {
14+
15+
vPosition = position;
16+
vColor = color;
17+
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
18+
}
19+
20+
21+

assets/glsl/ground.frag

-25
This file was deleted.

assets/glsl/ground.vert

-37
This file was deleted.

assets/glsl/pollution/fragment.frag

-7
This file was deleted.

assets/glsl/pollution/vertex.vert

-12
This file was deleted.

assets/glsl/screen/screen.frag

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
precision highp float;
2+
uniform float uTime;
3+
uniform vec3 uColor;
4+
varying vec2 vUv;
5+
6+
7+
void main()
8+
{
9+
vec2 wavedUv = vec2(vUv.x,vUv.y + sin(vUv.x * 10.0) * 0.1);
10+
float strength = 1.0 - step(0.01, abs(distance(wavedUv, vec2(0.5)) - 0.25) * sin(uTime * 3.));
11+
gl_FragColor = vec4(vec3(strength), 1.0);
12+
}

assets/glsl/screen/screen.vert

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
uniform float uTime;
2+
precision highp float;
3+
4+
uniform mat4 modelViewMatrix; // optional
5+
uniform mat4 projectionMatrix; // optional
6+
7+
attribute vec3 position;
8+
attribute vec4 color;
9+
10+
varying vec3 vPosition;
11+
varying vec4 vColor;
12+
13+
attribute vec2 uv;
14+
varying vec2 vUv;
15+
16+
void main() {
17+
18+
vUv = uv;
19+
20+
vPosition = position;
21+
vColor = color;
22+
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
23+
}
24+
25+
26+

assets/glsl/trees/treeVert.js

-82
This file was deleted.

assets/glsl/trees/trees.vert

-87
This file was deleted.

assets/glsl/trinity/trinity.frag

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
precision highp float;
2+
uniform float uTime;
3+
uniform vec3 uColor;
4+
uniform float uAlpha;
5+
varying vec3 vColor;
6+
7+
uniform float uSpeed;
8+
9+
void main() {
10+
vec3 color = uColor * cos(uTime * 3.);
11+
gl_FragColor = vec4(color, uAlpha);
12+
}

0 commit comments

Comments
 (0)