提交 cd83fb8c 编写于 作者: T Thomas FORGIONE

Changed transparency to opacity

The OBJ to JSON converter uses now opacity instead of transparency
attribute.

Fixes #6645
上级 123f168d
......@@ -443,9 +443,9 @@ def parse_mtl(fname):
if (chunks[0] == "Tr" or chunks[0] == "d") and len(chunks) == 2:
materials[identifier]["transparent"] = True
if TRANSPARENCY == "invert":
materials[identifier]["transparency"] = 1.0 - float(chunks[1])
materials[identifier]["opacity"] = float(chunks[1])
else:
materials[identifier]["transparency"] = float(chunks[1])
materials[identifier]["opacity"] = 1.0 - float(chunks[1])
# Optical density
# Ni 1.0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册