1 attribute vec4 a_position; 2 3 uniform mat4 u_projTrans; 4 uniform vec4 u_color; 5 6 varying vec4 v_color; 7 8 void main() { 9 v_color = u_color; 10 gl_Position = u_projTrans * a_position; 11 }