2014-05-06 16:36:46 -04:30
|
|
|
// Model-view matrix.
|
2014-02-07 14:11:41 -04:30
|
|
|
uniform mat4 u_projTrans;
|
|
|
|
|
|
2014-05-06 16:36:46 -04:30
|
|
|
// Vertex position in world coordinates.
|
2014-02-07 14:11:41 -04:30
|
|
|
attribute vec4 a_position;
|
|
|
|
|
|
2014-05-07 16:42:14 -04:30
|
|
|
// Vertex color.
|
|
|
|
|
attribute vec4 a_color;
|
|
|
|
|
|
|
|
|
|
// Vertex color to pass to the fragment shader.
|
|
|
|
|
varying vec4 v_color;
|
|
|
|
|
|
2014-02-07 14:11:41 -04:30
|
|
|
void main(){
|
2014-05-07 16:42:14 -04:30
|
|
|
v_color = a_color;
|
2014-02-07 14:11:41 -04:30
|
|
|
gl_Position = u_projTrans * a_position;
|
2014-05-06 16:36:46 -04:30
|
|
|
}
|