Browse Source

Merge pull request #146 from PetterGs/update-main-example

Update main example
Garrett Johnson 4 years ago
parent
commit
fbb4f501c0
2 changed files with 4 additions and 4 deletions
  1. 3 3
      README.md
  2. 1 1
      example/index.js

+ 3 - 3
README.md

@@ -131,16 +131,16 @@ Adding support for DRACO decompression within the GLTF files that are transporte
 // Note the DRACO compression files need to be supplied via an explicit source.
 // We use unpkg here but in practice should be provided by the application.
 const dracoLoader = new DRACOLoader();
-dracoLoader.setDecoderPath( 'https://unpkg.com/three@0.116.1/examples/js/libs/draco/gltf/' );
+dracoLoader.setDecoderPath( 'https://unpkg.com/three@0.123.0/examples/js/libs/draco/gltf/' );
 
 const tilesRenderer = new TilesRenderer( './path/to/tileset.json' );
 tilesRenderer.manager.addHandler( /\.gltf$/, {
 
 	parse( ...args ) {
-
-
+	
 		const loader = new GLTFLoader( tiles.manager );
 		loader.setDRACOLoader( dracoLoader );
+
 		return loader.parse( ...args );
 
 	}

+ 1 - 1
example/index.js

@@ -91,7 +91,7 @@ function reinstantiateTiles() {
 	// Note the DRACO compression files need to be supplied via an explicit source.
 	// We use unpkg here but in practice should be provided by the application.
 	const dracoLoader = new DRACOLoader();
-	dracoLoader.setDecoderPath( 'https://unpkg.com/three@0.116.1/examples/js/libs/draco/gltf/' );
+	dracoLoader.setDecoderPath( 'https://unpkg.com/three@0.123.0/examples/js/libs/draco/gltf/' );
 
 	tiles = new TilesRenderer( url );
 	tiles.fetchOptions.mode = 'cors';