提交 4abfd839 编写于 作者: M Mr.doob

ColladaLoader2: Handle transparency.

上级 81f460bf
......@@ -386,8 +386,8 @@ THREE.ColladaLoader.prototype = {
case 'emission':
case 'diffuse':
case 'specular':
case 'transparent':
case 'shininess':
case 'transparency':
data[ child.nodeName ] = parseEffectParameter( child );
break;
......@@ -543,6 +543,12 @@ THREE.ColladaLoader.prototype = {
if ( parameter.color && material.emissive )
material.emissive.fromArray( parameter.color );
break;
case 'transparency':
if ( parameter.float )
material.opacity = parameter.float;
if ( parameter.float !== 1 )
material.transparent = true;
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册