Skip to content

GetLevelFittedNormalizedDistance

ULodGlspComponent · API Reference

Calculates LOD from the normalized distance between the camera and the Chunk.

cpp
int32 GetLevelFittedNormalizedDistance(
    float fDistance) const;

Normalized distance is distance / Chunk bounding-sphere radius, with LodDistanceScale applied. Each distance doubling makes the LOD one level coarser; adjacent thresholds use 10% hysteresis.

C++ Example

cpp
const float Distance = FVector::Distance(
    CameraLocation, Chunk->GetComponentLocation());
const int32 Lod =
    Chunk->GetLevelFittedNormalizedDistance(Distance);

Blueprint Example

Get Level Fitted Normalized Distance Blueprint example

See Also


Back to ULodGlspComponent

LiSplat Unreal SDK 产品文档中心