I'm loading a .fbx model in my threejs scene, but it has a very hard light inside. How could I switch off or modify the light inside the model? I've tried to access it via object and child.Mesh, but i can't get any information...
loader.load( 'fbxmodel.FBX', function ( object ) {
// mixer = new THREE.AnimationMixer( object );
// var action = mixer.clipAction( object.animations[ 0 ] );
// action.play();
object.traverse( function ( child ) {
if ( child.isMesh ) {
child.castShadow = true;
child.receiveShadow = true;
console.log(child.light) //Undefined
}
});
console.log(object.light) //Undefined
scene.add( object );
});