I have to change the Material for a specific mesh buffer in my mesh, but I can't find a function like "meshbuffer->setMaterial()".
How do I achieve to change the material?
well this meshbuffer is part of a huge mesh containing a huge amount of other meshbuffers.
The mesh is rendered as a scenenode in smgr->drawAll(). So I want to apply a new material to the meshbuffer structure so the material is chosen automatically in the drawAll function.
Masterhawk wrote:well this meshbuffer is part of a huge mesh containing a huge amount of other meshbuffers.
The mesh is rendered as a scenenode in smgr->drawAll(). So I want to apply a new material to the meshbuffer structure so the material is chosen automatically in the drawAll function.