I've successfully loaded a 3D object model into a three.js scene using the following code:
var skull;
var loader2 = new THREE.ObjectLoader();
loader2.load(
'skull.json',
function(object) {
skull = object;
scene.add(skull);
}
);
Now, I'm trying to figure out how to dynamically adjust the opacity of the model. I have searched through the skull
variable but couldn't find any properties related to opacity.
Does anyone have suggestions on how I can achieve this?