feat: add spot light shadows with a tilled buffer

This commit is contained in:
2026-10-18 12:56:52 +02:00
parent 4bd99b25d1
commit 65a7310b56
19 changed files with 519 additions and 122 deletions
@@ -39,6 +39,11 @@ layout (buffer_reference, scalar) readonly buffer SceneDataBuffer {
float shadowNormalOffset;
uint padding;
mat4 lightViewProj;
// spot shadows
uint spotShadowAtlasId;
uint spotShadowTilesPerRow;
SpotShadow spotShadows[MAX_SPOT_SHADOWS];
} sceneDataBuffer;
#endif // SCENE_DATA_GLSL