-void Technique::Loader::shader(const string &n)
-{
- Program *shprog=coll->get<Program>(n);
- if(shprog) // Allow for unsupported shaders
- {
- RefPtr<ProgramData> shdata=new ProgramData;
- load_sub(*shdata, *shprog);
-
- obj.normal_pass->shprog=shprog;
- if(obj.normal_pass->shdata)
- delete obj.normal_pass->shdata;
- obj.normal_pass->shdata=shdata.release();
- }
-}
-
-void Technique::Loader::shader_texture(const string &n)
-{
- string::size_type eqsign=n.find('=');
- TextureSlot tex;
- if(eqsign!=string::npos)
- {
- tex.name=n.substr(0, eqsign);
- tex.texture=coll->get<Texture>(n.substr(eqsign+1));
- }