uniform mat4 projMat; uniform mat4 matrix; uniform vec2 texSizeInv; attribute vec2 position; attribute vec2 texCoord; attribute vec4 color; varying vec2 v_texCoord; varying vec4 v_color; void main() { gl_Position = projMat * matrix * vec4(position, 0, 1); v_texCoord = texCoord * texSizeInv; v_color = color; }