GetLevelFittedNormalizedDistance
ULodGlspComponent · API リファレンス
カメラとチャンクの正規化距離から LOD を計算します。
cpp
int32 GetLevelFittedNormalizedDistance(
float fDistance) const;正規化距離は distance / Chunk bounding-sphere radius に LodDistanceScale を適用した値です。距離が 2 倍になるごとに LOD は 1 段階粗くなり、隣接するしきい値には 10% のヒステリシスを使用します。
C++ の例
cpp
const float Distance = FVector::Distance(
CameraLocation, Chunk->GetComponentLocation());
const int32 Lod =
Chunk->GetLevelFittedNormalizedDistance(Distance);Blueprint の例

関連項目
- GetLevelFittedNO: チャンクの最長辺に基づく別の距離計算です。
- ChangeLevel: 計算した LOD を適用します。