longlatDepth.fp 885 B

123456789101112131415161718192021222324252627
  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 450
  12. layout(location = 0) out vec4 outColor;
  13. layout(location = 0) in vec4 position;
  14. layout(location = 1) in vec3 colors_gs;
  15. layout(location = 2) in vec2 texCoords_gs;
  16. layout(location = 3) in vec3 normals_gs;
  17. void main()
  18. {
  19. if(100.f*position.z<0.001)
  20. discard;
  21. outColor = vec4(1.f-10.f*position.z, 1.f-10.f*position.z, 1.f-10.f*position.z , 1.0f);
  22. //outColor = vec4(colors_gs.x, colors_gs.y, colors_gs.z , 1.0f);
  23. }