vertex.vs 216 B

12345678910111213
  1. #version 430
  2. layout (location = 0) in vec3 position;
  3. uniform mat4 proj;
  4. uniform mat4 view;
  5. out vec3 varTexture;
  6. void main(void) {
  7. gl_Position = proj * view * vec4(position, 1.0);
  8. varTexture = position;
  9. }