ok thanks. I found a similiar solution.
I have another question:
I know add:
Code: Select all
Ogre::Archive* archiveFog = archiveManager.load(dataFolder + "Hlms/Fog/Any", "FileSystem", true);
archivePbsLibraryFolders.push_back(archiveFog);
Fog data to pbs, if fog is enabled. But now when I disable fog via:
Code: Select all
this->gameObjectPtr->getSceneManager()->setFog(Ogre::FOG_NONE);
The whole scene will become black.
Is it possible to add/remove custom shader from pbs at runtime?
I already tried:
Code: Select all
hlmsPbs->reloadFrom(archivePbs, &archivePbsLibraryFolders);
But that did not work and the scene started to flicker.
Best Regards
Lax