| 12345678910111213141516171819202122232425262728293031 |
- /* depth.frag -- Fragment shader used for dir/spot-lights shadow mapping
- *
- * Copyright (c) 2025-2026 Le Juez Victor
- *
- * This software is provided 'as-is', without any express or implied warranty.
- * For conditions of distribution and use, see accompanying LICENSE file.
- */
- #version 330 core
- /* === Varyings === */
- smooth in vec2 vTexCoord;
- smooth in vec4 vColor;
- /* === Uniforms === */
- uniform sampler2D uAlbedoMap;
- uniform float uAlphaCutoff;
- /* === User override === */
- #include "../include/user/scene.frag"
- /* === Main function === */
- void main()
- {
- // NOTE: The depth is automatically written
- SceneFragment(vTexCoord, mat3(1.0), uAlphaCutoff);
- }
|