[英]How to add transparency to the .dae model?
var mesh7;
loader.load("test_obj/dae/07.DAE", function (result) {
mesh7 = result.scene.children[0].children[0].clone();
mesh7.scale.set(1, 1, 1);
mesh7.position.set(0, 0, 0);
mesh7.opacity: 0.5; //it doesn't work
objects.push( mesh7 );
console.log(mesh7);
});
try add:尝试添加:
mesh7.material.transparent = true;
mesh7.material.opacity = 0.5;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.