shader实现
const char* vs =
{
"attribute vec3 inVertex;"//顶点
"attribute vec3 inNormal;"//法线
"attribute vec2 inTexCoord;"//纹理
"attribute vec3 inTangent;"//切线
"uniform mat4 MVPMatrix;"
"uniform vec3 EyePosMV;"
"varying vec3 EyeDirection;"
"varying vec2 TexCoord;"
"void main()"
"{"
"gl_Position=MVPMatrix*vec4(inVertex,1);"
"vec3 eyeDirModel=normali