SceneManager->getParameters()->getAttributeAsColor(DEBUG_NORMAL_COLOR);
could define coors for all debug rendering
Code: Select all
if (DebugDataVisible & scene::EDS_BBOX_BUFFERS)
{
for (u32 g=0; g< m->getMeshBufferCount(); ++g)
{
const IMeshBuffer* mb = m->getMeshBuffer(g);
if (Mesh->getMeshType() == EAMT_SKINNED)
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation * ((SSkinMeshBuffer*)mb)->Transformation);
change this
driver->draw3DBox(mb->getBoundingBox(), video::SColor(255,190,128,128));
to something like this
driver->draw3DBox(mb->getBoundingBox(), SceneManager->getParameters()->getAttributeAsColor(DEBUG_BBOX_BUFFERS_COLOR));
}
}