I need to change the transparency of a file. Dae (collada), by my code with the library Three.js with dat.gui. I'm using: $gui = new DAT.GUI(); gui.add(opacity_pele, 'pele').onChange(function(){
if ( opacity_pele.pele ) {
material[pele].transparency = 1.0;
} else {
material[pele].transparency = 0.0;
}
});
gui.close();