mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Create materials
container
This commit is contained in:
parent
f191283928
commit
82c87ee814
2 changed files with 3 additions and 1 deletions
|
@ -244,6 +244,7 @@ var ParseObj = function (data, flipUV)
|
|||
|
||||
// Store results in here
|
||||
var result = {
|
||||
materials: {},
|
||||
materialLibraries: [],
|
||||
models: []
|
||||
};
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* @typedef {object} Phaser.Types.Geom.Mesh.OBJData
|
||||
* @since 3.50.0
|
||||
*
|
||||
* @property {string[]} materialLibraries - An array of material libraries in the OBJ file.
|
||||
* @property {string[]} materialLibraries - An array of material library filenames found in the OBJ file.
|
||||
* @property {object} materials - If the obj was loaded with an mtl file, the parsed material names are stored in this object.
|
||||
* @property {Phaser.Types.Geom.Mesh.OBJModel[]} models - An array of parsed models extracted from the OBJ file.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue