shadowMapRenderer.vp 688 B

123456789101112131415161718192021222324252627282930313233
  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 MVP;
  13. uniform mat4 depthMapMVP;
  14. layout(location = 0) in vec3 in_vertex;
  15. layout(location = 3) in vec3 in_normal;
  16. out vec4 depthMapProj;
  17. out vec3 VtoF_normal;
  18. out vec3 VtoF_pos;
  19. void main(void) {
  20. gl_Position = MVP * vec4(in_vertex,1.0);
  21. depthMapProj = depthMapMVP * vec4(in_vertex,1.0);
  22. VtoF_normal = in_normal;
  23. VtoF_pos = in_vertex;
  24. }