parseMaterials method
dynamic
parseMaterials(
- dynamic textureMap
Implementation
parseMaterials(textureMap) {
var materialMap = new Map();
if (fbxTree.Objects["Material"] != null) {
var materialNodes = fbxTree.Objects["Material"];
for (var nodeID in materialNodes.keys) {
var material = this.parseMaterial(materialNodes[nodeID], textureMap);
if (material != null) materialMap[parseInt(nodeID)] = material;
}
}
return materialMap;
}