瀏覽代碼

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

Mugen87 5 年之前
父節點
當前提交
6d10245e06
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 ) {