Page 1 of 1

Fragen Fragen Fragen.

Posted: Thu Oct 06, 2005 7:35 pm
by hubel
Can i use the Irrlicht Shaders in the Quake 3 Maps?

Posted: Thu Oct 06, 2005 10:34 pm
by Elise
Yes you can use shaders on any material, but you have to set it to each material individually. So something like this:
...
node = smgr->addOctTreeSceneNode(q3mesh->getMesh(0));

video::SMaterial& material1 = node->getMaterial(0);
material1.MaterialType = (video::E_MATERIAL_TYPE)shaderMaterial1;

video::SMaterial& material2 = node->getMaterial(1);
material2.MaterialType = (video::E_MATERIAL_TYPE)shaderMaterial2;
...

etc
There may be some errors in the above code as I typed it from memory.

Hope that helped! :)