overlayVertex.vs 416 B

12345678910111213141516171819
  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. {
  12. varTextureCoord = textureCoord;
  13. varColor = color;
  14. gl_Position = viewMatrix * modelMatrix * vec4(position, 1.0);
  15. }