This commit is contained in:
CortexCore
2024-05-31 01:23:15 +08:00
parent c798b224be
commit 299082fe27
164 changed files with 3604 additions and 2018 deletions

View File

@@ -6,5 +6,11 @@ namespace BITKit.OpenWorld
{
public class WorldTerrainService : WorldChunkService<WorldTerrainService>
{
protected override int CalculateLod(IWorldChunkObject value, Vector3 cameraPosition, int lod)
{
if (lod is not 0) return lod;
return value.GetBounds().Contains(cameraPosition) ? 0 : 1;
}
}
}