|
@@ -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 );
|
|
|
|
|
|
}
|