浏览代码

Editor: add TGALoader support

troy351 5 年之前
父节点
当前提交
3e360a3ce9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/js/Loader.js

+ 4 - 0
editor/js/Loader.js

@@ -21,6 +21,8 @@ import { TDSLoader } from '../../examples/jsm/loaders/TDSLoader.js';
 import { VTKLoader } from '../../examples/jsm/loaders/VTKLoader.js';
 import { VRMLLoader } from '../../examples/jsm/loaders/VRMLLoader.js';
 
+import { TGALoader } from '../../examples/jsm/loaders/TGALoader.js';
+
 import { AddObjectCommand } from './commands/AddObjectCommand.js';
 import { SetSceneCommand } from './commands/SetSceneCommand.js';
 
@@ -66,6 +68,8 @@ function Loader( editor ) {
 				return url;
 
 			} );
+			
+			manager.addHandler( /\.tga$/i, new TGALoader() );
 
 			for ( var i = 0; i < files.length; i ++ ) {