For MaxLOD values > 5, disable LOD threshold and view limits (#609)

This commit is contained in:
Christian Semmler 2025-07-15 13:21:41 -07:00 committed by GitHub
parent 3543f5f494
commit 87c89885ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ A higher setting will cause higher quality textures to be drawn regardless of di
</sizepolicy>
</property>
<property name="maximum">
<number>50</number>
<number>60</number>
</property>
<property name="singleStep">
<number>5</number>

View File

@ -235,7 +235,7 @@ inline void ViewManager::ManageVisibilityAndDetailRecursively(ViewROI* p_from, i
if (p_from->GetWorldBoundingSphere().Radius() > 0.001F) {
float projectedSize = ProjectedSize(p_from->GetWorldBoundingSphere());
if (projectedSize < seconds_allowed * g_viewDistance) {
if (RealtimeView::GetUserMaxLOD() <= 5.0f && projectedSize < seconds_allowed * g_viewDistance) {
if (p_from->GetLodLevel() != ViewROI::c_lodLevelInvisible) {
ManageVisibilityAndDetailRecursively(p_from, ViewROI::c_lodLevelInvisible);
}
@ -361,7 +361,7 @@ inline int ViewManager::CalculateLODLevel(float p_maximumScale, float p_initialS
assert(from);
if (GetFirstLODIndex(from) != 0) {
if (p_maximumScale < g_minLODThreshold) {
if (RealtimeView::GetUserMaxLOD() <= 5.0f && p_maximumScale < g_minLODThreshold) {
return 0;
}
else {