From bc01e91dbce607806ef4c3831bf943dff995f5aa Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 29 Sep 2024 11:53:14 +0100 Subject: [PATCH] Fix not applying spotlight settings --- KeepersCompound.Lightmapper/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 3e85298..3f6e6f1 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -37,7 +37,8 @@ class Program var missionName = "lm_test.cow"; // campaignName = "TDP20AC_a_burrick_in_a_room"; - // missionName = "miss20.mis"; + campaignName = "AtdV"; + missionName = "miss20.mis"; // Setup extract path var tmpDir = Directory.CreateTempSubdirectory("KCLightmapper"); @@ -189,6 +190,10 @@ class Program innerRadius = propLight.InnerRadius, radius = propLight.Radius, r2 = propLight.Radius * propLight.Radius, + spotlight = baseLight.spotlight, + spotlightDir = baseLight.spotlightDir, + spotlightInnerAngle = baseLight.spotlightInnerAngle, + spotlightOuterAngle = baseLight.spotlightOuterAngle, }; if (propLight.Radius == 0) @@ -209,6 +214,10 @@ class Program innerRadius = propAnimLight.InnerRadius, radius = propAnimLight.Radius, r2 = propAnimLight.Radius * propAnimLight.Radius, + spotlight = baseLight.spotlight, + spotlightDir = baseLight.spotlightDir, + spotlightInnerAngle = baseLight.spotlightInnerAngle, + spotlightOuterAngle = baseLight.spotlightOuterAngle, anim = true, animLightTableIndex = propAnimLight.LightTableLightIndex, };