Skip to content

Commit

Permalink
Update vr.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jul 25, 2024
1 parent 4679271 commit 21c78ad
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions example/vr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
DebugTilesRenderer as TilesRenderer,
TilesRenderer,
NONE,

Check warning on line 3 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'NONE' is defined but never used

Check warning on line 3 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'NONE' is defined but never used
SCREEN_ERROR,

Check warning on line 4 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'SCREEN_ERROR' is defined but never used

Check warning on line 4 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'SCREEN_ERROR' is defined but never used
GEOMETRIC_ERROR,

Check warning on line 5 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'GEOMETRIC_ERROR' is defined but never used

Check warning on line 5 in example/vr.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'GEOMETRIC_ERROR' is defined but never used
Expand Down Expand Up @@ -47,8 +47,6 @@ const upVector = new Vector3( 0, 1, 0 );

const params = {

'displayBoxBounds': false,
'colorMode': 0,
'displayGrid': true,

};
Expand Down Expand Up @@ -174,19 +172,6 @@ function init() {
const gui = new GUI();
gui.width = 300;
gui.add( params, 'displayGrid' );
gui.add( params, 'displayBoxBounds' );
gui.add( params, 'colorMode', {

NONE,
SCREEN_ERROR,
GEOMETRIC_ERROR,
DISTANCE,
DEPTH,
RELATIVE_DEPTH,
IS_LEAF,
RANDOM_COLOR,

} );
gui.open();

}
Expand Down Expand Up @@ -292,10 +277,6 @@ function animate() {

grid.visible = params.displayGrid;

// update options
tiles.displayBoxBounds = params.displayBoxBounds;
tiles.colorMode = parseFloat( params.colorMode );

// update tiles center
if ( tiles.getBoundingBox( box ) ) {

Expand Down

0 comments on commit 21c78ad

Please sign in to comment.