2
0

opengl_vertex.glsl 213 B

1234567891011
  1. uniform mat4 mWorld;
  2. varying lowp vec4 varColor;
  3. varying mediump vec2 varTexCoord;
  4. void main(void)
  5. {
  6. varTexCoord = inTexCoord0.st;
  7. gl_Position = mWorldViewProj * inVertexPosition;
  8. varColor = inVertexColor;
  9. }