提交 51a9f30c 编写于 作者: Y yomboprime

LDrawLoader: Make lines honor material opacity

上级 21227491
......@@ -1288,7 +1288,11 @@ THREE.LDrawLoader = ( function () {
if ( ! edgeMaterial ) {
// This is the material used for edges
edgeMaterial = new THREE.LineBasicMaterial( { color: edgeColour } );
edgeMaterial = new THREE.LineBasicMaterial( {
color: edgeColour,
transparent: isTransparent,
opacity: alpha
} );
edgeMaterial.userData.code = code;
edgeMaterial.name = name + " - Edge";
edgeMaterial.userData.canHaveEnvMap = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册