VertShader.vsh 396 B

12345678910111213141516
  1. attribute highp vec3 inVertex;
  2. attribute highp vec3 inNormal;
  3. attribute highp vec2 inTexCoord;
  4. uniform highp mat4 ModelViewMatrix;
  5. uniform highp mat4 ProjectionMatrix;
  6. varying highp vec4 color;
  7. varying highp vec2 TexCoord;
  8. void main()
  9. {
  10. gl_Position = ProjectionMatrix * ModelViewMatrix * vec4(inVertex, 1.0);
  11. TexCoord = inTexCoord;
  12. color = vec4(1.0, 1.0, 1.0, 1.0);
  13. }