1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user