fontTest.vs 344 B

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