Ogre::MaterialPtr material = Ogre::MaterialManager::getSingleton().getByName("MyMaterialName"); material->setDiffuse(Ogre::ColourValue(1.0, 1.0, 1.0, 1.0));In this example, we retrieve the material with the name "MyMaterialName" and set its diffuse color to white. The package library for Cpp Ogre is Ogre3D.