textVertex.vs 349 B

12345678910111213141516171819
  1. #version 430
  2. layout (location = 0) in vec2 position;
  3. layout (location = 1) in vec2 tex;
  4. layout (location = 2) in vec3 color;
  5. uniform mat4 proj;
  6. uniform mat4 view;
  7. uniform mat4 model;
  8. out vec2 varTex;
  9. out vec3 varColor;
  10. void main(void)
  11. {
  12. varTex = tex;
  13. varColor = color;
  14. gl_Position = proj * view * model * vec4(position, 0.0, 1.0);
  15. }