// Get a MaterialPtr for a specific material named 'my_material' Ogre::MaterialPtr myMaterial = Ogre::MaterialManager::getSingleton().getByName("my_material"); // Enable shadow receiving for the material myMaterial->setReceiveShadows(true);In this example, we retrieve a MaterialPtr for a material named "my_material" using the MaterialManager singleton. We then enable shadow receiving for the material by calling the setReceiveShadows method with true as its argument. The Ogre library comes packaged with the OGRE plugin for C++ development.