Update dromed lighting mode to objcast

This commit is contained in:
Jarrod Doyle 2024-12-11 17:43:47 +00:00
parent 1aac751043
commit 8191d30b20
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 9 additions and 1 deletions

View File

@ -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)