ComputeTemporalStaticMeshLOD

Computes the LOD level for the given static meshes render data in the given view, for one of the two temporal LOD samples

Windows
MacOS
Linux

Syntax

int8 ComputeTemporalStaticMeshLOD
(
    const FStaticMeshRenderData * RenderData,
    const FVector4 & Origin,
    const float SphereRadius,
    const FSceneView & View,
    int32 MinLOD,
    float FactorScale,
    int32 SampleIndex
)

Remarks

Computes the LOD level for the given static meshes render data in the given view, for one of the two temporal LOD samples

Parameters

Parameter

Description

RenderData

Render data for the mesh

Origin

Origin of the bounds of the mesh in world space

SphereRadius

Radius of the sphere to use to calculate screen coverage

View

The view to calculate the LOD level for

FactorScale

multiplied by the computed screen size before computing LOD

SampleIndex

index (0 or 1) of the temporal sample to use

References

Module

Engine

Header

Runtime/Engine/Public/SceneManagement.h

Source

Runtime/Engine/Private/SceneManagement.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback