mesh_normal.vp 651 B

12345678910111213141516171819202122232425262728
  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. uniform mat4 proj;
  13. layout(location = 0) in vec3 in_vertex;
  14. //layout(location = 1) in vec2 in_texcoord;
  15. layout(location = 1) in vec3 in_normal;
  16. //out vec2 texture_coord;
  17. out vec3 normal_coord;
  18. void main(void) {
  19. gl_Position = proj * vec4(in_vertex,1.0);
  20. //texture_coord = in_texcoord;
  21. normal_coord = in_normal;
  22. }