mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
add draw distance multiplier
This commit is contained in:
parent
4bdb8c3944
commit
f92186362d
1 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,8 @@ namespace SanAndreasUnity.Behaviours.World
|
|||
}
|
||||
}
|
||||
|
||||
public float drawDistanceMultiplier = 1f;
|
||||
|
||||
public int WorldSize => 6000; // current world size - in the future, this will be configurable
|
||||
public static int DefaultWorldSize => 6000;
|
||||
|
||||
|
@ -173,7 +175,7 @@ namespace SanAndreasUnity.Behaviours.World
|
|||
staticGeometry.Initialize(inst.Key, m_insts);
|
||||
_worldSystem.AddObjectToArea(
|
||||
staticGeometry.transform.position,
|
||||
staticGeometry.ObjectDefinition?.DrawDist ?? 0,
|
||||
(staticGeometry.ObjectDefinition?.DrawDist ?? 0) * this.drawDistanceMultiplier,
|
||||
staticGeometry);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue