opengl_vertex.glsl 250 B

1234567891011121314
  1. varying lowp vec4 varColor;
  2. varying mediump vec2 varTexCoord;
  3. void main(void)
  4. {
  5. varTexCoord = inTexCoord0.st;
  6. gl_Position = mWorldViewProj * inVertexPosition;
  7. #ifdef GL_ES
  8. varColor = inVertexColor.bgra;
  9. #else
  10. varColor = inVertexColor;
  11. #endif
  12. }