[2.3] possible to createItem with SubMesh?
Posted: Tue Dec 01, 2020 2:40 am
I can create an Item with an Ogre::Mesh object using createItem() and using HlmsUnlit, I set the material.
Is it possible to create an Item of a specific Ogre::SubMesh object somehow? I would like to be able to call setDatablock() on the submesh item to only change the material for one of several SubMeshes within a Mesh.
Code: Select all
Ogre::HlmsUnlitDatablock *block;
Ogre::MeshPtr mp;
// ...
Ogre::Item *item = sceneManager->createItem(mp, Ogre::SCENE_DYNAMIC);
item->setDatablock(block);