From 8191d30b20c5f09d46913d640cc820b2848c94db Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Wed, 11 Dec 2024 17:43:47 +0000 Subject: [PATCH] Update dromed lighting mode to objcast --- KeepersCompound.Lightmapper/LightMapper.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/LightMapper.cs b/KeepersCompound.Lightmapper/LightMapper.cs index 8bc9632..5279aa5 100644 --- a/KeepersCompound.Lightmapper/LightMapper.cs +++ b/KeepersCompound.Lightmapper/LightMapper.cs @@ -92,7 +92,15 @@ public class LightMapper Timing.TimeStage("Trace Scene", () => TraceScene(settings)); Timing.TimeStage("Update AnimLight Cell Mapping", SetAnimLightCellMaps); - // lmParams.ShadowType = LmParams.LightingMode.Raycast; + // We always do object casting, so it's nice to let dromed know that :) + lmParams.ShadowType = LmParams.LightingMode.Objcast; + if (rendParams is { useSunlight: true, sunlightMode: RendParams.SunlightMode.SingleUnshadowed }) + { + rendParams.sunlightMode = RendParams.SunlightMode.SingleObjcastShadows; + } else if (rendParams is { useSunlight: true, sunlightMode: RendParams.SunlightMode.QuadUnshadowed }) + { + rendParams.sunlightMode = RendParams.SunlightMode.QuadObjcastShadows; + } } public void Save(string missionName)