opengl_vertex.glsl 271 B

123456789101112131415
  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. #ifdef GL_ES
  9. varColor = inVertexColor.bgra;
  10. #else
  11. varColor = inVertexColor;
  12. #endif
  13. }