Quellcode durchsuchen

Add Support for Reflectivity in Maya Exporter

https://github.com/mrdoob/three.js/issues/7634
https://github.com/mrdoob/three.js/issues/7632
evantron3000 vor 9 Jahren
Ursprung
Commit
8d5fca0a26
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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"]: