coloredquad.vert 222 B

1234567891011121314
  1. uniform vec2 center;
  2. uniform vec2 size;
  3. #if __VERSION__ >= 330
  4. layout(location = 0) in vec2 Position;
  5. #else
  6. in vec2 Position;
  7. #endif
  8. void main()
  9. {
  10. gl_Position = vec4(Position * size + center, 0., 1.);
  11. }