overlayVertex.vs 416 B

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