Browse Source

update support properties

    transparency => opacity
    remove colorAmbient, https://github.com/mrdoob/three.js/pull/7374
Oleg Apostol 9 years ago
parent
commit
fc1a3b24cb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      utils/exporters/maya/plug-ins/threeJsFileTranslator.py

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

@@ -233,11 +233,10 @@ class ThreeJsWriter(object):
             "DbgName": mat.name(),
             "blending": "NormalBlending",
             "colorDiffuse": map(lambda i: i * mat.getDiffuseCoeff(), mat.getColor().rgb),
-            "colorAmbient": mat.getAmbientColor().rgb,
             "depthTest": True,
             "depthWrite": True,
             "shading": mat.__class__.__name__,
-            "transparency": mat.getTransparency().a,
+            "opacity": mat.getTransparency().a,
             "transparent": mat.getTransparency().a != 1.0,
             "vertexColors": False
         }