Browse Source

Prefetch DRACO decoder on DRACO endcoded glTF load

Tyler Lindberg 6 years ago
parent
commit
b32c3a7544
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/js/loaders/GLTFLoader.js

+ 1 - 0
examples/js/loaders/GLTFLoader.js

@@ -508,6 +508,7 @@ THREE.GLTFLoader = ( function () {
 		this.name = EXTENSIONS.KHR_DRACO_MESH_COMPRESSION;
 		this.json = json;
 		this.dracoLoader = dracoLoader;
+		THREE.DRACOLoader.getDecoderModule();
 
 	}