Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ogre::Archive * archiveLibrary = Ogre::ArchiveManager::getSingletonPtr()->load("../../../libs/ogre-2.1/install/share/OGRE/Media/Hlms/Common/GLSL", "FileSystem", true );
Ogre::ArchiveVec library;
library.push_back( archiveLibrary );
Ogre::Archive * archivePbs = Ogre::ArchiveManager::getSingletonPtr()->load("../../../libs/ogre-2.1/install/share/OGRE/Media/Hlms/Pbs/GLSL", "FileSystem", true );
Ogre::HlmsPbs * hlmsPbs = OGRE_NEW Ogre::HlmsPbs( archivePbs, &library );
mOgreRoot.getHlmsManager()->registerHlms( hlmsPbs );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.