Set SpotlightInnerAngle to -1 on non-spotlights

It's a bit odd but it matches what DromEd does
This commit is contained in:
Jarrod Doyle 2024-12-26 21:39:29 +00:00
parent 8b84e5ce3a
commit 54c8176302
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 4 additions and 1 deletions

View File

@ -220,6 +220,7 @@ public class LightMapper
Radius = float.MaxValue, Radius = float.MaxValue,
R2 = float.MaxValue, R2 = float.MaxValue,
LightTableIndex = lightTable.LightCount, LightTableIndex = lightTable.LightCount,
SpotlightInnerAngle = -1f,
}; };
_lights.Add(light); _lights.Add(light);
@ -288,7 +289,8 @@ public class LightMapper
QuadLit = propAnimLight.QuadLit, QuadLit = propAnimLight.QuadLit,
ObjId = id, ObjId = id,
LightTableIndex = propAnimLight.LightTableLightIndex, LightTableIndex = propAnimLight.LightTableLightIndex,
Anim = true Anim = true,
SpotlightInnerAngle = -1f,
}; };
if (propSpotlight != null) if (propSpotlight != null)
@ -318,6 +320,7 @@ public class LightMapper
QuadLit = propLight.QuadLit, QuadLit = propLight.QuadLit,
ObjId = id, ObjId = id,
LightTableIndex = lightTable.LightCount, LightTableIndex = lightTable.LightCount,
SpotlightInnerAngle = -1f,
}; };
if (propSpotAmb != null) if (propSpotAmb != null)