Add warning for quad lit flag when using shadow softness

This commit is contained in:
Jarrod Doyle 2025-02-23 18:10:11 +00:00
parent 8b25290cfd
commit 51aa7a96a9
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 14 additions and 2 deletions

View File

@ -253,7 +253,7 @@ public class LightMapper
}
}
ValidateLightConfigurations();
ValidateLightConfigurations(settings);
worldRep.LightingTable.Reset();
foreach (var light in _lights)
@ -272,12 +272,24 @@ public class LightMapper
}
// TODO: Validate in-world here? Set cell idx on lights maybe?
private void ValidateLightConfigurations()
private void ValidateLightConfigurations(Settings settings)
{
var infinite = 0;
for (var i = _lights.Count - 1; i > 0; i--)
{
var light = _lights[i];
if (light.QuadLit && settings.MultiSampling != SoftnessMode.Standard)
{
if (light.ObjId != -1)
{
Log.Warning("Object {Id}: Light flagged QuadLit but using Shadow Softness in build dialog. Shadow Softness overrides QuadLit.", light.ObjId);
}
else
{
Log.Warning("Brush at {Id}: Light flagged QuadLit but using Shadow Softness in build dialog. Shadow Softness overrides QuadLit.", light.Position);
}
}
if (light.Brightness == 0)
{