Sfoglia il codice sorgente

support for maya specularcolor texture

ncannasse 7 anni fa
parent
commit
5408d58ea2
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      hxd/fmt/fbx/HMDOut.hx

+ 3 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -490,7 +490,9 @@ class HMDOut extends BaseLibrary {
 
 				// get other textures
 				mat.normalMap = makeTexturePath(getSpecChild(m, "NormalMap"));
-				mat.specularTexture = makeTexturePath(getSpecChild(m, "SpecularFactor"));
+				var spec = getSpecChild(m, "SpecularFactor"); // 3dsMax
+				if( spec == null ) spec = getSpecChild(m, "SpecularColor"); // maya
+				mat.specularTexture = makeTexturePath(spec);
 				if( mat.normalMap != null || mat.specularTexture != null ) {
 					if( mat.props == null ) mat.props = [];
 					mat.props.push(HasExtraTextures);