Browse Source

Examples: Clarify usage of .addHandler() in OBJ/MTL demo.

Mugen87 5 years ago
parent
commit
6d10245e06
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/webgl_loader_obj_mtl.html

+ 3 - 0
examples/webgl_loader_obj_mtl.html

@@ -71,6 +71,9 @@
 				var manager = new THREE.LoadingManager();
 				manager.addHandler( /\.dds$/i, new DDSLoader() );
 
+				// comment in the following line and import TGALoader if your asset uses TGA textures
+				// manager.addHandler( /\.tga$/i, new TGALoader() );
+
 				new MTLLoader( manager )
 					.setPath( 'models/obj/male02/' )
 					.load( 'male02_dds.mtl', function ( materials ) {