mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-08 07:02:25 +02:00
Prefer using LODManager.lodAngleDeg for setting manual LOD
This commit is contained in:
parent
3a4ce44633
commit
4b5a45209e
2 changed files with 5 additions and 7 deletions
|
@ -55,8 +55,6 @@ class LODManager : public QObject, public Dependency {
|
|||
|
||||
Q_PROPERTY(float worldDetailQuality READ getWorldDetailQuality WRITE setWorldDetailQuality NOTIFY worldDetailQualityChanged)
|
||||
|
||||
Q_PROPERTY(float octreeSizeScale READ getOctreeSizeScale WRITE setOctreeSizeScale)
|
||||
|
||||
Q_PROPERTY(bool automaticLODAdjust READ getAutomaticLODAdjust WRITE setAutomaticLODAdjust NOTIFY autoLODChanged)
|
||||
|
||||
Q_PROPERTY(float presentTime READ getPresentTime)
|
||||
|
|
|
@ -531,21 +531,21 @@ function maybeUpdateOutputDeviceMutedOverlay() {
|
|||
|
||||
|
||||
var oldAutomaticLODAdjust;
|
||||
var oldOctreeSizeScale;
|
||||
var oldLODAngleDeg;
|
||||
var SIMPLIFIED_UI_AUTO_LOD_ADJUST = false;
|
||||
var SIMPLIFIED_UI_OCTREE_SIZE_SCALE = 32768 * 916; // Octree cell size in meters (constant) * distance in meters at which we want a 1 meter cube to be visible
|
||||
var SIMPLIFIED_UI_LOD_ANGLE_DEG = 1.0
|
||||
function modifyLODSettings() {
|
||||
oldAutomaticLODAdjust = LODManager.automaticLODAdjust;
|
||||
oldOctreeSizeScale = LODManager.octreeSizeScale;
|
||||
oldLODAngleDeg = LODManager.lodAngleDeg;
|
||||
|
||||
LODManager.automaticLODAdjust = SIMPLIFIED_UI_AUTO_LOD_ADJUST;
|
||||
LODManager.octreeSizeScale = SIMPLIFIED_UI_OCTREE_SIZE_SCALE;
|
||||
LODManager.lodAngleDeg = SIMPLIFIED_UI_LOD_ANGLE_DEG;
|
||||
}
|
||||
|
||||
|
||||
function restoreLODSettings() {
|
||||
LODManager.automaticLODAdjust = oldAutomaticLODAdjust;
|
||||
LODManager.octreeSizeScale = oldOctreeSizeScale;
|
||||
LODManager.lodAngleDeg = oldLODAngleDeg;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue