From 926497b2c26ac35842aa7b910e6f5cb3c2a710ab Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 27 Oct 2024 16:33:02 +0000 Subject: [PATCH] Use ToLightData on brush lights --- KeepersCompound.Lightmapper/Program.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 5662af1..d04b640 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -170,14 +170,7 @@ class Program }; lights.Add(light); - lightTable.AddLight(new WorldRep.LightTable.LightData - { - Location = light.Position, - Direction = light.SpotlightDir, - Color = light.Color / 32.0f, // TODO: This is based on light_scale config var - InnerAngle = -1.0f, - Radius = 0, - }); + lightTable.AddLight(light.ToLightData(32.0f)); } private static void ProcessObjectLight(