depth.fp 718 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. layout(location = 0) out vec4 out_color;
  13. layout(binding = 0) uniform sampler2D image; /// \todo TODO: remove
  14. //in vec3 vertex_coord;
  15. //uniform vec3 iCamPos;
  16. uniform vec2 size;
  17. void main(void) {
  18. vec2 tC = gl_FragCoord.xy / size;
  19. out_color.xyz = vec3(0.0);//texture(image, tC.xy).xyz;
  20. out_color.w = gl_FragCoord.z;
  21. //out_color.w = distance(vertex_coord, iCamPos);
  22. }