first.vs 219 B

12345678910111213
  1. #version 330 core
  2. layout(location = 0) in vec4 pos;
  3. layout(location = 1) in vec4 color;
  4. uniform mat4 projMatr;
  5. out vec4 fragColor;
  6. void main() {
  7. gl_Position = projMatr * pos;
  8. fragColor = color;
  9. }