alpha_points.vert 590 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2020, Inria
  3. * GRAPHDECO research group, https://team.inria.fr/graphdeco
  4. * All rights reserved.
  5. *
  6. * This software is free for non-commercial, research and evaluation use
  7. * under the terms of the LICENSE.md file.
  8. *
  9. * For inquiries contact sibr@inria.fr and/or George.Drettakis@inria.fr
  10. */
  11. #version 420
  12. layout(location = 0) in vec3 in_vertex;
  13. layout(location = 1) in vec3 in_color;
  14. uniform mat4 mvp;
  15. uniform int radius;
  16. out vec3 color;
  17. void main(void) {
  18. gl_Position = mvp * vec4(in_vertex, 1.0);
  19. gl_PointSize = radius;
  20. color = in_color;
  21. }