Browse Source

Update examples builds.

Mr.doob 3 years ago
parent
commit
c56c8c1ff3
1 changed files with 3 additions and 4 deletions
  1. 3 4
      examples/js/exporters/GLTFExporter.js

+ 3 - 4
examples/js/exporters/GLTFExporter.js

@@ -671,9 +671,8 @@
 			context.putImageData( composite, 0, 0 ); //
 
 			const reference = metalnessMap || roughnessMap;
-			const texture = reference.clone(); // TODO Use new Source() instead?
-
-			texture.source = new THREE.Texture( canvas ).source;
+			const texture = reference.clone();
+			texture.source = new THREE.Source( canvas );
 			return texture;
 
 		}
@@ -1024,7 +1023,7 @@
 		}
 		/**
    * Process sampler
-   * @param  {Texture} map THREE.Texture to process
+   * @param  {Texture} map Texture to process
    * @return {Integer}     Index of the processed texture in the "samplers" array
    */