Skip to content

Commit e06b331

Browse files
committed
change datadir
1 parent af0afa0 commit e06b331

File tree

7 files changed

+1331
-2
lines changed

7 files changed

+1331
-2
lines changed

eventsapp/data/glsl/default.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$HEADER$
2+
void main (void){
3+
gl_FragColor = frag_color * texture2D(texture0, tex_coord0);
4+
}

eventsapp/data/glsl/default.png

224 Bytes
Loading

eventsapp/data/glsl/default.vs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$HEADER$
2+
void main (void) {
3+
frag_color = color * vec4(1.0, 1.0, 1.0, opacity);
4+
tex_coord0 = vTexCoords0;
5+
gl_Position = projection_mat * modelview_mat * vec4(vPosition.xy, 0.0, 1.0);
6+
}

eventsapp/data/glsl/header.fs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifdef GL_ES
2+
precision highp float;
3+
#endif
4+
5+
/* Outputs from the vertex shader */
6+
varying vec4 frag_color;
7+
varying vec2 tex_coord0;
8+
9+
/* uniform texture samplers */
10+
uniform sampler2D texture0;
11+
12+
uniform mat4 frag_modelview_mat;

eventsapp/data/glsl/header.vs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#ifdef GL_ES
2+
precision highp float;
3+
#endif
4+
5+
/* Outputs to the fragment shader */
6+
varying vec4 frag_color;
7+
varying vec2 tex_coord0;
8+
9+
/* vertex attributes */
10+
attribute vec2 vPosition;
11+
attribute vec2 vTexCoords0;
12+
13+
/* uniform variables */
14+
uniform mat4 modelview_mat;
15+
uniform mat4 projection_mat;
16+
uniform vec4 color;
17+
uniform float opacity;

0 commit comments

Comments
 (0)