Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/jsm/libs/draco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Either variation may be used with `DRACOLoader`:
```js
var dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath('path/to/decoders/');
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
```

Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).
Expand Down
2 changes: 2 additions & 0 deletions examples/jsm/loaders/DRACOLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ class DRACOLoader extends Loader {
/**
* Provides configuration for the decoder libraries. Configuration cannot be changed after decoding begins.
*
* @deprecated
* @param {{type:('js'|'wasm')}} config - The decoder config.
* @return {DRACOLoader} A reference to this loader.
*/
setDecoderConfig( config ) {

console.warn( 'THREE.DRACOLoader: setDecoderConfig to has been deprecated and will be removed in r194.' );
this.decoderConfig = config;

return this;
Expand Down
1 change: 0 additions & 1 deletion examples/webgl_loader_3dtiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
// loader
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/gltf/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

const DEG2RAD = Math.PI / 180;

Expand Down
1 change: 0 additions & 1 deletion examples/webgl_loader_draco.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
// Configure and create Draco decoder.
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

init();

Expand Down
1 change: 0 additions & 1 deletion examples/webgl_postprocessing_gtao.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );
const loader = new GLTFLoader();
loader.setDRACOLoader( dracoLoader );
loader.setPath( 'models/gltf/' );
Expand Down
1 change: 0 additions & 1 deletion examples/webgl_postprocessing_ssr.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
// Configure and create Draco decoder.
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

init();

Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_caustics.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

gltf = ( await new GLTFLoader().setDRACOLoader( dracoLoader ).loadAsync( './models/gltf/duck.glb' ) ).scene;
gltf.scale.setScalar( .5 );
Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_postprocessing_ao.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );
const loader = new GLTFLoader();
loader.setDRACOLoader( dracoLoader );
loader.setPath( 'models/gltf/' );
Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_postprocessing_ssr.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

const loader = new GLTFLoader();
loader.setDRACOLoader( dracoLoader );
Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_upscaling_fsr1.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );
const loader = new GLTFLoader();
loader.setDRACOLoader( dracoLoader );

Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_upscaling_taau.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );
const loader = new GLTFLoader();
loader.setDRACOLoader( dracoLoader );

Expand Down
1 change: 0 additions & 1 deletion examples/webgpu_volume_caustics.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@

const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'jsm/libs/draco/' );
dracoLoader.setDecoderConfig( { type: 'js' } );

gltf = ( await new GLTFLoader().setDRACOLoader( dracoLoader ).loadAsync( './models/gltf/duck.glb' ) ).scene;
gltf.scale.setScalar( .5 );
Expand Down