Added basic shadows to directional lights; Probably needs to be refined

This commit is contained in:
grayson committed 2021-09-13 02:37:49 -05:00
1 parent b007d3f18e
commit d74035fc64
12 files changed
+168 -39

No files matched your search

@@ -0,0 +1,5 @@
#version 330 core
void main() {
}
@@ -0,0 +1,12 @@
#version 330 core
layout(location = 0) in vec3 pos;
uniform mat4 lightSpace;
uniform mat4 model;
out vec3 texCoord;
void main() {
gl_Position = lightSpace * model * vec4(pos, 1.0);
}