- Bind bind_depth_test(pass.depth_test);
- Bind bind_blend(pass.blend);
- Bind bind_lighting(pass.lighting);
-
- for(vector<Effect *>::const_iterator i=pass.effects.begin(); i!=pass.effects.end(); ++i)
- (*i)->prepare();
-
- for(vector<Slot>::const_iterator i=renderables.begin(); i!=renderables.end(); ++i)
- if(i->passes.empty() || i->passes.count(tag))
- i->renderable->render(renderer, tag);
-
- for(vector<Effect *>::const_iterator i=pass.effects.end(); i!=pass.effects.begin();)
- (*--i)->cleanup();