Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ComputeLODForMeshes
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SceneManagement.cpp |
FLODMask ComputeLODForMeshes
(
const TArray < class FStaticMeshBatchRelevance > & StaticMeshRelevances,
const FSceneView & View,
const FVector4 & Origin,
float SphereRadius,
float InstanceSphereRadius,
int32 ForcedLODLevel,
float & OutScreenRadiusSquared,
int8 CurFirstLODIdx,
float ScreenSizeScale
)
Remarks
Computes the LOD to render for the list of static meshes in the given view.
Parameters
| Name | Description |
|---|---|
| StaticMeshes | List of static meshes. |
| View | The view to render the LOD level for |
| Origin | Origin of the bounds of the primitive in world space |
| SphereRadius | Radius of the sphere bounds of the primitive in world space |
| InstanceSphereRadius | Radius of the sphere bounds for a single mesh instance in the primitive. If not 0.f then the return FLODMask will contain a range of LODs ready for LOD selection on the GPU |