feat: multiple lights kinda shadow support (shader is missing)

This commit is contained in:
2025-10-14 20:55:24 +02:00
parent fdbf1296de
commit 94afd17d65
9 changed files with 104 additions and 206 deletions

View File

@ -15,7 +15,6 @@ out vec4 fragPosLightSpace;
uniform mat4 u_model; // Model matrix: transforms from local space to world space
uniform mat4 u_view; // View matrix: transforms from world space to camera space (view space)
uniform mat4 u_projection; // Projection matrix: transforms from camera space to clip space
uniform mat4 u_lightSpace;
void main()
{
@ -27,7 +26,7 @@ void main()
TexCoords = texCoord;
fragPosLightSpace = u_lightSpace * vec4(vertexPos, 1.0);
// fragPosLightSpace = u_lightSpace * vec4(vertexPos, 1.0);
gl_Position = u_projection * u_view * vec4(vertexPos, 1.0);
}