* add OBJLoader

* add MTLLoader
* Geometry merge add parameter
* Object3D onBeforeRender, on AfterRender
* Object3D add delete fixed number of parameters
This commit is contained in:
Flur
2017-06-12 15:45:17 +03:00
parent 1a3263397f
commit 23b7cd1674
5 changed files with 93 additions and 4 deletions

21
types/three/three-objloader.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
import {Material} from "./three-core";
import {LoadingManager} from "./three-core";
import {Group} from "./three-core";
import {MaterialCreator} from "./three-mtlloader";
export class OBJLoader {
constructor(manager?: LoadingManager);
manager: LoadingManager;
regexp: any;
materials: Material[];
path: string;
load(url: string, onLoad: (group: Group) => void, onProgress?: (event: any) => void, onError?: (event: any) => void): void;
parse(data: string) : Group;
setPath(value: string) : void;
setMaterials(materials: MaterialCreator) : void;
_createParserState() : any;
}