Skip to content

Commit

Permalink
feat(Debug): Add elevation range gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Dec 22, 2023
1 parent 8d699a1 commit b0d9471
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions utils/debug/PotreeDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ export default {
if (layer.material.picking != undefined) {
styleUI.add(layer.material, 'picking').name('Display picking id').onChange(update);
}
layer.whenReady.then(() => {
const minElevation = layer.minElevationRange;
const maxElevation = layer.maxElevationRange;
styleUI.add(layer, 'minElevationRange', minElevation, maxElevation)
.name('Min elevation')
.onChange(update);
styleUI.add(layer, 'maxElevationRange', minElevation, maxElevation)
.name('Max elevation')
.onChange(update);
});

// UI
const debugUI = layer.debugUI.addFolder('Debug');
Expand Down

0 comments on commit b0d9471

Please sign in to comment.