mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 02:38:28 +08:00
Fixed LODs culling issue
This commit is contained in:
@@ -3651,7 +3651,7 @@ namespace CodeWalker.Rendering
|
||||
foreach (var kvp in RootEntities)
|
||||
{
|
||||
var ent = kvp.Key;
|
||||
if (EntityVisibleAtMaxLodLevel(ent) && EntityVisible(ent))
|
||||
if (EntityVisibleAtMaxLodLevel(ent))
|
||||
{
|
||||
ent.Distance = MapViewEnabled ? MapViewDist : (ent.Position - Position).Length();
|
||||
if (ent.Distance <= (ent.LodDist * LodDistMult))
|
||||
@@ -3676,7 +3676,7 @@ namespace CodeWalker.Rendering
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((ent.Parent == null) || EntityVisible(ent))
|
||||
if (EntityVisible(ent))
|
||||
{
|
||||
VisibleLeaves.Add(ent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user