PDF をエクスポート

選択した内容を目次順に結合してダウンロードします。選択済みドキュメント間のリンクは PDF 内で移動し、未選択のリンクはオンラインで開きます。

本文へスキップ

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 の例 ​

Get Level Fitted Normalized Distance Blueprint の例

関連項目 ​


ULodGlspComponent に戻る

LiSplat Unreal SDK ドキュメントセンター