Add descriptor for shadow map

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-04 21:27:46 +01:00
1 parent 3dc7c73296
commit 6e37b45f28
3 files changed
+106 -18

No files matched your search

+2
View File
@@ -9,6 +9,8 @@ layout(location = 1) in vec4 light_pos;
layout(location = 0) out vec4 out_colour;
layout(binding = 2) uniform sampler2DShadow shadow_map;
void main()
{
float lambertian = max(dot(frag_normal, light_dir), 0.0);