function addMaterial(material)
	{
		addTexturesFromMaterial(material);

		if (manager.materials[material.uuid] === undefined)
		{
			resources.materials[material.uuid] = material;
		}
	}
Searches the object and all its children for resources that still dont exist in the resource manager.

Stores them in a resource container object that is returned.

@static
@method searchObject
@param {Object3D} object Object to search for resources.
@param {ResourceManager} manager Resource manager object.
@param {ResourceContainer} target Optional resource container object that can be used to store the found resources.
@return {ResourceContainer} Object with the new resources found in the object.