attribute vec3 coord2d; attribute vec2 tex_coord; uniform vec4 tex_color; uniform mat4 ortho; uniform mat4 transform; varying vec2 texCoord; varying vec4 color; void main(){ color = tex_color; texCoord = tex_coord; gl_Position = ortho * transform * vec4(coord2d.xyz, 1.0); }