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 năm trước cách đây
mục cha
commit
8d5fca0a26
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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"]: