2025-01-03 12:09:23 +00:00
|
|
|
using Godot;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Godot.Collections;
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
public partial class LODCameraDistanceRule:LODLevelVisibilityRule
|
|
|
|
{
|
|
|
|
[Export]
|
|
|
|
public float minDistance;
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
public float maxDistance;
|
|
|
|
|
|
|
|
public override bool Evaluate( LODNode lodNode )
|
|
|
|
{
|
2025-06-10 13:16:36 +00:00
|
|
|
return Range.Contains( minDistance, maxDistance, lodNode.distance );
|
2025-01-03 12:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|