提交 fc1a3b24 编写于 作者: O Oleg Apostol

update support properties

    transparency => opacity
    remove colorAmbient, https://github.com/mrdoob/three.js/pull/7374
上级 4bab4687
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册