Add the sun to every cell's light list

This commit is contained in:
Jarrod Doyle 2024-12-09 14:48:16 +00:00
parent b34131f3b5
commit 7693261cd7
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,11 @@ public class LightMapper
// Odd choice I know // Odd choice I know
cell.LightIndexCount++; cell.LightIndexCount++;
cell.LightIndices.Add(0); cell.LightIndices.Add(0);
// Additionally we'll add the sun to everything (yucky)
cell.LightIndexCount++;
cell.LightIndices.Add(0);
cell.LightIndices[0]++;
// The OG lightmapper uses the cell traversal to work out all the cells that // The OG lightmapper uses the cell traversal to work out all the cells that
// are actually visited. We're a lot more coarse and just say if a cell is // are actually visited. We're a lot more coarse and just say if a cell is