mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-09 20:45:20 -04:00
For MaxLOD values > 5, disable LOD threshold and view limits (#609)
This commit is contained in:
parent
3543f5f494
commit
87c89885ba
@ -291,7 +291,7 @@ A higher setting will cause higher quality textures to be drawn regardless of di
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>50</number>
|
<number>60</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="singleStep">
|
<property name="singleStep">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
|
@ -235,7 +235,7 @@ inline void ViewManager::ManageVisibilityAndDetailRecursively(ViewROI* p_from, i
|
|||||||
if (p_from->GetWorldBoundingSphere().Radius() > 0.001F) {
|
if (p_from->GetWorldBoundingSphere().Radius() > 0.001F) {
|
||||||
float projectedSize = ProjectedSize(p_from->GetWorldBoundingSphere());
|
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) {
|
if (p_from->GetLodLevel() != ViewROI::c_lodLevelInvisible) {
|
||||||
ManageVisibilityAndDetailRecursively(p_from, 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);
|
assert(from);
|
||||||
|
|
||||||
if (GetFirstLODIndex(from) != 0) {
|
if (GetFirstLODIndex(from) != 0) {
|
||||||
if (p_maximumScale < g_minLODThreshold) {
|
if (RealtimeView::GetUserMaxLOD() <= 5.0f && p_maximumScale < g_minLODThreshold) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user