+void Technique::InheritLoader::material(const string &pass_tag, const string &name)
+{
+ RenderPass &pass = get_item(obj.passes, pass_tag);
+ const Material &mat = get_collection().get<Material>(name);
+ if(const Material *base_mat = pass.get_material())
+ {
+ for(PassMap::iterator i=obj.passes.begin(); i!=obj.passes.end(); ++i)
+ if(i->second.get_material()==base_mat)
+ i->second.set_material(&mat);
+ }
+ else
+ pass.set_material(&mat);
+}
+