Explorar o código

update support properties

    transparency => opacity
    remove colorAmbient, https://github.com/mrdoob/three.js/pull/7374
Oleg Apostol %!s(int64=10) %!d(string=hai) anos
pai
achega
fc1a3b24cb
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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
         }