Create materials container

This commit is contained in:
Richard Davey 2020-10-08 10:44:32 +01:00
parent f191283928
commit 82c87ee814
2 changed files with 3 additions and 1 deletions

View file

@ -244,6 +244,7 @@ var ParseObj = function (data, flipUV)
// Store results in here
var result = {
materials: {},
materialLibraries: [],
models: []
};

View file

@ -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.
*/