MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetMeshLod

Method GetMeshLod

trinity/Eve/EveInstancedMeshManager.cpp:971–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971uint32_t EveInstancedMeshManager::GetMeshLod( const MeshData& meshInfo, float screenSize )
972{
973 auto lodCount = static_cast<uint32_t>( meshInfo.lodIndices.size() );
974 for( uint32_t lod = 0; lod + 1 < lodCount; ++lod )
975 {
976 if( screenSize > meshInfo.screenSizeThresholds[lod + 1] )
977 {
978 return lod;
979 }
980 }
981 return lodCount - 1;
982}
983
984void EveInstancedMeshManager::ReportUsedScreenSizes() const
985{

Callers 15

GetPickingBatchesMethod · 0.45
GetBatchesMethod · 0.45
ReportUsedScreenSizesMethod · 0.45
GetBatchesMethod · 0.45
GetShadowBatchesMethod · 0.45
GetBatchWithEffectMethod · 0.45
GetShadowBatchesMethod · 0.45
UpdateRtSkeletonMethod · 0.45
GetShadowBatchesMethod · 0.45
GetBatchesMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected