Browse Source

Add Support for Reflectivity in Maya Exporter

https://github.com/mrdoob/three.js/issues/7634
https://github.com/mrdoob/three.js/issues/7632
evantron3000 9 years ago
parent
commit
8d5fca0a26
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/exporters/maya/plug-ins/threeJsFileTranslator.py

+ 1 - 0
utils/exporters/maya/plug-ins/threeJsFileTranslator.py

@@ -241,6 +241,7 @@ class ThreeJsWriter(object):
             "vertexColors": False
             "vertexColors": False
         }
         }
         if isinstance(mat, nodetypes.Phong):
         if isinstance(mat, nodetypes.Phong):
+            result["reflectivity"] = mat.getReflectivity()
             result["colorSpecular"] = mat.getSpecularColor().rgb
             result["colorSpecular"] = mat.getSpecularColor().rgb
             result["specularCoef"] = mat.getCosPower()
             result["specularCoef"] = mat.getCosPower()
             if self.options["specularMaps"]:
             if self.options["specularMaps"]: