Преглед изворни кода

update support properties

    transparency => opacity
    remove colorAmbient, https://github.com/mrdoob/three.js/pull/7374
Oleg Apostol пре 10 година
родитељ
комит
fc1a3b24cb
1 измењених фајлова са 1 додато и 2 уклоњено
  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
         }