code: function getObjectMaterial( object ) {
  
  		return object.material instanceof THREE.MeshFaceMaterial
  			? object.material.materials[ 0 ]
  			: object.material;
  
  	}
docs: For the moment just ignore objects that have multiple materials with different animation methods Only the first material will be taken into account for deciding which depth material to use for shadow maps