2012-08-30 13:38:39 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
precision mediump float;
|
|
|
|
precision mediump int;
|
|
|
|
#endif
|
2012-08-29 10:14:08 +02:00
|
|
|
// Input :
|
2012-08-30 16:58:54 +02:00
|
|
|
attribute vec3 EW_coord3d;
|
2012-08-29 10:14:08 +02:00
|
|
|
attribute vec2 EW_texture2d;
|
|
|
|
attribute vec4 EW_color;
|
|
|
|
uniform mat4 EW_MatrixTransformation;
|
|
|
|
|
|
|
|
// output :
|
|
|
|
varying vec4 f_color;
|
|
|
|
varying vec2 f_texcoord;
|
|
|
|
|
|
|
|
void main(void) {
|
2012-08-30 16:58:54 +02:00
|
|
|
gl_Position = EW_MatrixTransformation * vec4(EW_coord3d, 1.0);
|
2012-08-29 10:14:08 +02:00
|
|
|
// set texture output coord
|
|
|
|
f_texcoord = EW_texture2d;
|
|
|
|
// set output color :
|
|
|
|
f_color = EW_color;
|
|
|
|
}
|