Implement lambertian shading w/ directional light

This commit is contained in:
Camden Dixie O'Brien committed 2025-09-29 12:16:14 +01:00
1 parent 620cf7606b
commit 32a31a729f
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -13,5 +13,5 @@ layout(push_constant) uniform MVP {
void main() {
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(position, 1.0);
frag_normal = normal;
frag_normal = mat3(mvp.model) * normal;
}