/Resources/shaders/basicTexture.vsh

http://github.com/tartiflop/ojgl · Vertex Shader File · 12 lines · 9 code · 3 blank · 0 comment · 0 complexity · 9eb8b86ea074516314d8b8a0eab13847 MD5 · raw file

  1. uniform mat4 u_mvMatrix;
  2. uniform mat4 u_mvpMatrix;
  3. attribute vec4 a_vertex;
  4. attribute vec2 a_texCoord;
  5. varying vec2 v_texCoord;
  6. void main(void) {
  7. v_texCoord = a_texCoord;
  8. gl_Position = u_mvpMatrix * a_vertex;
  9. }