Don't try and compute visibility for lights outside of the world
This commit is contained in:
parent
db0b1f9c7a
commit
fafae43c56
|
@ -485,7 +485,7 @@ public class LightMapper
|
|||
var pvs = new PotentiallyVisibleSet(worldRep.Cells);
|
||||
Parallel.ForEach(lightCellMap, i =>
|
||||
{
|
||||
pvs.ComputeVisibility(i);
|
||||
if (i != -1) pvs.ComputeVisibility(i);
|
||||
});
|
||||
|
||||
var visibleCellMap = new List<int[]>(_lights.Count);
|
||||
|
|
Loading…
Reference in New Issue