Navigation
API > API/Plugins > API/Plugins/MassLOD > API/Plugins/MassLOD/TMassLODCalculator > API/Plugins/MassLOD/TMassLODCalculator/CalculateLOD
References
| Module | MassLOD |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODCalculator.h |
| Include | #include "MassLODCalculator.h" |
template<typename TViewerInfoFragment, typename TLODFragment, typename TPerViewerInfoFragment, bool bCalculateLocalViewers, bool bCalculateVisibility, bool bCalculateLODPerViewer, bool bCalculateVisibilityPerViewer, bool bMaximizeCountPerViewer>
void CalculateLOD
&40;
FMassExecutionContext & Context,
TConstArrayView< TViewerInfoFragment > ViewersInfoList,
TArrayView< TLODFragment > LODList,
TConstArrayView< TPerViewerInfoFragment > PerViewerInfoList
&41;
Remarks
Calculate LOD, called for each entity chunks Use this version when FLODLogic::bStoreInfoPerViewer is enabled It calculates a LOD per viewer and needs information per viewer via PerViewerInfoList fragments Context of the chunk execution ViewersInfoList is the source information fragment for LOD calculation LODList is the fragment where calculation are stored PerViewerInfoList is the Per viewer source information