2011-12-26 11:33:40 +00:00
|
|
|
uniform mat4 mvp_mat;
|
2011-12-28 11:43:56 +00:00
|
|
|
attribute vec4 vcolor;
|
2011-12-26 11:33:40 +00:00
|
|
|
/** Vertex position.
|
|
|
|
|
|
|
|
x, y, s, t
|
|
|
|
|
|
|
|
\a vertex provides the onscreen location at which to draw the icon
|
|
|
|
(\a x, \a y) and texture coordinate for the icon (\a s=z, \a t=w).
|
|
|
|
*/
|
|
|
|
attribute vec4 vertex;
|
|
|
|
|
2011-12-28 00:04:26 +00:00
|
|
|
varying vec4 color;
|
2011-12-26 11:33:40 +00:00
|
|
|
varying vec2 st;
|
|
|
|
|
|
|
|
void
|
|
|
|
main (void)
|
|
|
|
{
|
|
|
|
gl_Position = mvp_mat * vec4 (vertex.xy, 0.0, 1.0);
|
|
|
|
st = vertex.zw;
|
2011-12-28 00:04:26 +00:00
|
|
|
color = vcolor;
|
2011-12-26 11:33:40 +00:00
|
|
|
}
|