thanks I still need more help. how can I send data from poitions vbo,colors vbo etc to shader like this
#version 120
attribute vec2 position;
attribute vec4 color;
attribute vec2 texCoord;
varying vec4 vColor;
varying vec2 vTexCoord;
void main(void){
vColor = color;
vTexCoord = texCoord;
gl_Position = vec4(position,0.0,1.0);
}
OpenGL 2.1 plz