From 196e97a8fdfed3c3bfbeefcd7573c3a651b1efdb Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Wed, 25 Sep 2024 18:50:30 +0100 Subject: [PATCH] Apply light property position offset --- KeepersCompound.Lightmapper/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 67e6c11..cc4e9a1 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -117,9 +117,11 @@ class Program { propLightColor ??= new PropLightColor { Hue = 0, Saturation = 0 }; + // TODO: There's still some lights that aren't positioned right such as Streetlamp. + // Perhaps there's a light point specified in model files? var light = new Light { - position = brush.position, + position = brush.position + propLight.Offset, color = HsbToRgb(propLightColor.Hue, propLightColor.Saturation, propLight.Brightness), radius = propLight.Radius, r2 = propLight.Radius * propLight.Radius,