Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法改变所有层次结构(分支)的不透明度/alpha,而不是每个网格材料?
不可以。但是,您可以使用它object.traverse()来设置对象材质及其子对象的不透明度。
object.traverse()
mesh.traverse( function( node ) { if( node.material ) { node.material.opacity = 0.5; node.material.transparent = true; } });
三.js r.56