Add the sun to every cell's light list
This commit is contained in:
parent
b34131f3b5
commit
7693261cd7
|
@ -323,6 +323,11 @@ public class LightMapper
|
|||
// Odd choice I know
|
||||
cell.LightIndexCount++;
|
||||
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
|
||||
// are actually visited. We're a lot more coarse and just say if a cell is
|
||||
|
|
Loading…
Reference in New Issue