depthRenderer.fp 473 B

12345678910111213141516171819202122
  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. out float out_depth;
  13. void main(void) {
  14. out_depth = 2.0*gl_FragCoord.z-1.0;
  15. //out_color = fragTexCoord.x*vec4(1.0,0.0,0.0,1.0);
  16. }