Skip to content

Commit

Permalink
refactor(index.js): add displayParentBounds toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
sguimmara committed Dec 23, 2024
1 parent 635b71d commit 86c9b4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const params = {

up: hashUrl ? '+Z' : '+Y',
enableDebug: true,
displayParentBounds: false,
displayBoxBounds: false,
displaySphereBounds: false,
displayRegionBounds: false,
Expand Down Expand Up @@ -273,6 +274,7 @@ function init() {

const debug = gui.addFolder( 'Debug Options' );
debug.add( params, 'enableDebug' );
debug.add( params, 'displayParentBounds' );
debug.add( params, 'displayBoxBounds' );
debug.add( params, 'displaySphereBounds' );
debug.add( params, 'displayRegionBounds' );
Expand Down Expand Up @@ -489,6 +491,7 @@ function animate() {
const plugin = tiles.getPluginByName( 'DEBUG_TILES_PLUGIN' );
plugin.enabled = params.enableDebug;
plugin.displayBoxBounds = params.displayBoxBounds;
plugin.displayParentBounds = params.displayParentBounds;
plugin.displaySphereBounds = params.displaySphereBounds;
plugin.displayRegionBounds = params.displayRegionBounds;
plugin.colorMode = parseFloat( params.colorMode );
Expand Down

0 comments on commit 86c9b4d

Please sign in to comment.