Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2018 06:50
Show Gist options
  • Save anonymous/df3f291913919b534cec3a03a75c0ac7 to your computer and use it in GitHub Desktop.
Save anonymous/df3f291913919b534cec3a03a75c0ac7 to your computer and use it in GitHub Desktop.
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