depth.frag 671 B

12345678910111213141516171819202122232425262728293031
  1. /* depth.frag -- Fragment shader used for dir/spot-lights shadow mapping
  2. *
  3. * Copyright (c) 2025-2026 Le Juez Victor
  4. *
  5. * This software is provided 'as-is', without any express or implied warranty.
  6. * For conditions of distribution and use, see accompanying LICENSE file.
  7. */
  8. #version 330 core
  9. /* === Varyings === */
  10. smooth in vec2 vTexCoord;
  11. smooth in vec4 vColor;
  12. /* === Uniforms === */
  13. uniform sampler2D uAlbedoMap;
  14. uniform float uAlphaCutoff;
  15. /* === User override === */
  16. #include "../include/user/scene.frag"
  17. /* === Main function === */
  18. void main()
  19. {
  20. // NOTE: The depth is automatically written
  21. SceneFragment(vTexCoord, mat3(1.0), uAlphaCutoff);
  22. }