From 7693261cd7729915feef1761187e6a56beddf3e4 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 9 Dec 2024 14:48:16 +0000 Subject: [PATCH] Add the sun to every cell's light list --- KeepersCompound.Lightmapper/LightMapper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/KeepersCompound.Lightmapper/LightMapper.cs b/KeepersCompound.Lightmapper/LightMapper.cs index ef7d647..d131945 100644 --- a/KeepersCompound.Lightmapper/LightMapper.cs +++ b/KeepersCompound.Lightmapper/LightMapper.cs @@ -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