attribute vec4 a_Position; attribute vec4 a_Color; varying vec4 v_Color; uniform mat4 u_ModelMatrix; uniform mat4 u_ProjMatrix; void main() { gl_Position = u_ProjMatrix * u_ModelMatrix * a_Position; v_Color = a_Color; } #ifdef GL_ES precision mediump float; #endif varying vec4 v_Color; void main() { gl_FragColor = v_Color; }