mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
On second thought, do not expose default octree size scale
This commit is contained in:
parent
772eb57898
commit
3a4ce44633
2 changed files with 4 additions and 10 deletions
|
@ -145,12 +145,6 @@ public:
|
|||
*/
|
||||
Q_INVOKABLE float getOctreeSizeScale() const { return _octreeSizeScale; }
|
||||
|
||||
/**jsdoc
|
||||
* @function LODManager.getDefaultOctreeSizeScale
|
||||
* @param {number} sizeScale
|
||||
*/
|
||||
Q_INVOKABLE float getDefaultOctreeSizeScale() const { return DEFAULT_OCTREE_SIZE_SCALE; }
|
||||
|
||||
/**jsdoc
|
||||
* @function LODManager.setBoundaryLevelAdjust
|
||||
* @param {number} boundaryLevelAdjust
|
||||
|
|
|
@ -532,14 +532,14 @@ function maybeUpdateOutputDeviceMutedOverlay() {
|
|||
|
||||
var oldAutomaticLODAdjust;
|
||||
var oldOctreeSizeScale;
|
||||
var DEFAULT_AUTO_LOD_ADJUST = false;
|
||||
var DEFAULT_OCTREE_SIZE_SCALE = LODManager.getDefaultOctreeSizeScale();
|
||||
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
|
||||
function modifyLODSettings() {
|
||||
oldAutomaticLODAdjust = LODManager.automaticLODAdjust;
|
||||
oldOctreeSizeScale = LODManager.octreeSizeScale;
|
||||
|
||||
LODManager.automaticLODAdjust = DEFAULT_AUTO_LOD_ADJUST;
|
||||
LODManager.octreeSizeScale = DEFAULT_OCTREE_SIZE_SCALE;
|
||||
LODManager.automaticLODAdjust = SIMPLIFIED_UI_AUTO_LOD_ADJUST;
|
||||
LODManager.octreeSizeScale = SIMPLIFIED_UI_OCTREE_SIZE_SCALE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue