examples/lib/three.js
function getObjectMaterial( object ) {

		return object.material instanceof THREE.MeshFaceMaterial
			? object.material.materials[ 0 ]
			: object.material;

	}
function getObjectMaterial( object ) {

		return object.material instanceof THREE.MeshFaceMaterial
			? object.material.materials[ 0 ]
			: object.material;

	}
function getObjectMaterial ( object ) { return object . material instanceof THREE . MeshFaceMaterial ? object . material . materials [ 0 ] : object . material ; }
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
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