2012-08-30 13:38:39 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
precision mediump float;
|
|
|
|
precision mediump int;
|
|
|
|
#endif
|
|
|
|
|
2012-08-28 18:16:09 +02:00
|
|
|
// Input :
|
|
|
|
attribute vec2 EW_coord2d;
|
|
|
|
attribute vec4 EW_color;
|
|
|
|
uniform mat4 EW_MatrixTransformation;
|
|
|
|
|
|
|
|
// output :
|
|
|
|
varying vec4 f_color;
|
|
|
|
|
|
|
|
void main(void) {
|
2012-08-29 18:25:24 +02:00
|
|
|
gl_Position = EW_MatrixTransformation * vec4(EW_coord2d, 0.0, 1.0);
|
|
|
|
//gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * vec4(EW_coord2d, 0.0, 1.0);
|
2012-08-28 18:16:09 +02:00
|
|
|
f_color = EW_color;
|
|
|
|
}
|