Explorar o código

Add Support for Reflectivity in Maya Exporter

https://github.com/mrdoob/three.js/issues/7634
https://github.com/mrdoob/three.js/issues/7632
evantron3000 %!s(int64=9) %!d(string=hai) anos
pai
achega
8d5fca0a26
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
         }
         if isinstance(mat, nodetypes.Phong):
+            result["reflectivity"] = mat.getReflectivity()
             result["colorSpecular"] = mat.getSpecularColor().rgb
             result["specularCoef"] = mat.getCosPower()
             if self.options["specularMaps"]: