Changing Opacity With Objmtloader
I am currently working on a project with three.js which include the usage of the OBJMTLloader.js, loading the obj and the mtl file Here is my code: var loader = new THREE.OBJMTLLoa
Solution 1:
In your loader callback, you can use a pattern like this one:
object.traverse( function( node ) {
if( node.material ) {
node.material.opacity = 0.5;
node.material.transparent = true;
}
} );
three.js r.64
Post a Comment for "Changing Opacity With Objmtloader"