textVertex.vs 349 B

123456789101112131415161718
  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. varTex = tex;
  12. varColor = color;
  13. gl_Position = proj * view * model * vec4(position, 0.0, 1.0);
  14. }