From df9b21de46afcd854d70b28e6dd11c44447bc13b Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 9 Dec 2024 18:40:04 +0000 Subject: [PATCH] Close #7: Log when too many lights reach cell --- KeepersCompound.Lightmapper/LightMapper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/KeepersCompound.Lightmapper/LightMapper.cs b/KeepersCompound.Lightmapper/LightMapper.cs index dfa0071..1459c0b 100644 --- a/KeepersCompound.Lightmapper/LightMapper.cs +++ b/KeepersCompound.Lightmapper/LightMapper.cs @@ -352,6 +352,11 @@ public class LightMapper cell.LightIndices[0]++; } } + + if (cell.LightIndexCount > 97) + { + Console.WriteLine($"Too many lights in cell at ({cell.SphereCenter}): {cell.LightIndexCount - 1} / 96"); + } }); }