Fragen Fragen Fragen.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hubel

Fragen Fragen Fragen.

Post by hubel »

Can i use the Irrlicht Shaders in the Quake 3 Maps?
Elise
Posts: 48
Joined: Tue Jul 19, 2005 6:30 am
Contact:

Post 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! :)
Post Reply