Skip to content

Commit

Permalink
Update webgl_loader_gltf_extensions.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Aug 23, 2019
1 parent 80b9675 commit beaaed2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/webgl_loader_gltf_extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,9 @@

loader = new THREE.GLTFLoader();

THREE.DRACOLoader.setDecoderPath( 'js/libs/draco/gltf/' );
loader.setDRACOLoader( new THREE.DRACOLoader() );
var dracoLoader = new THREE.DRACOLoader();
dracoLoader.setDecoderPath( 'js/libs/draco/gltf/' )
loader.setDRACOLoader( dracoLoader );

var url = sceneInfo.url.replace( /%s/g, state.extension );

Expand Down

0 comments on commit beaaed2

Please sign in to comment.