| 969 | } |
| 970 | |
| 971 | uint32_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 | |
| 984 | void EveInstancedMeshManager::ReportUsedScreenSizes() const |
| 985 | { |
no test coverage detected