overlay.vs 323 B

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