new OBJMTLLoader()
Load an OBJ file and its material definition in one pass.
Methods
(static) load(objFile, mtlFile, callback)
Begin loading the definition files.
Parameters:
Name | Type | Description |
---|---|---|
objFile |
string | The URL to the OBJ file |
mtlFile |
string | The URL to the MTL file |
callback |
LoaderCallback | The function called when loading is complete |
Type Definitions
LoaderCallback(object)
A function that's passed the result of the OBJMTLLoader.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object3D | The loaded object |