When I set the clothing material texture layer to 1, it still only renders the original image. I looked at the API and saw that the setMaterialTexture() calls getMaterialCount() during the for loop, which returns 0. So there only exists one layer.
With code like this:
Code: Select all
IBillboardSceneNode * node3 = smgr->addBillboardSceneNode();
node3->setMaterialFlag(EMF_LIGHTING, false);
node3->setMaterialTexture(0,driver->getTexture("C:\\irrlicht-1.8\\media\\newwall3.bmp"));
node3->setMaterialTexture(1,driver->getTexture("C:\\irrlicht-1.8\\media\\wallcover.bmp"));