Set SpotlightInnerAngle to -1 on non-spotlights
It's a bit odd but it matches what DromEd does
This commit is contained in:
parent
8b84e5ce3a
commit
54c8176302
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue