Run shadow render pass and compute light position in vertex shaders

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-04 21:27:46 +01:00
1 parent 73340b3a39
commit 633a922e42
6 files changed
+121 -23

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ vec3 light_dir = normalize(vec3(2, 2, -1));
vec3 base_colour = vec3(1.0, 0.94, 0.8);
layout(location = 0) in vec3 frag_normal;
layout(location = 1) in vec4 light_pos;
layout(location = 0) out vec4 out_colour;
void main()