Browse Source

support for maya specularcolor texture

ncannasse 7 years ago
parent
commit
5408d58ea2
1 changed files with 3 additions and 1 deletions
  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);