-----------------------------------------------------------------------------------
| 811 | } |
| 812 | //----------------------------------------------------------------------------------- |
| 813 | void GraphicsSystem::loadResources() |
| 814 | { |
| 815 | registerHlms(); |
| 816 | |
| 817 | loadTextureCache(); |
| 818 | loadHlmsDiskCache(); |
| 819 | |
| 820 | // Initialise, parse scripts etc |
| 821 | Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups( true ); |
| 822 | |
| 823 | // Initialize resources for LTC area lights and accurate specular reflections (IBL) |
| 824 | Ogre::Hlms *hlms = mRoot->getHlmsManager()->getHlms( Ogre::HLMS_PBS ); |
| 825 | OGRE_ASSERT_HIGH( dynamic_cast<Ogre::HlmsPbs *>( hlms ) ); |
| 826 | Ogre::HlmsPbs *hlmsPbs = static_cast<Ogre::HlmsPbs *>( hlms ); |
| 827 | try |
| 828 | { |
| 829 | hlmsPbs->loadLtcMatrix(); |
| 830 | } |
| 831 | catch( Ogre::FileNotFoundException &e ) |
| 832 | { |
| 833 | Ogre::LogManager::getSingleton().logMessage( e.getFullDescription(), Ogre::LML_CRITICAL ); |
| 834 | Ogre::LogManager::getSingleton().logMessage( |
| 835 | "WARNING: LTC matrix textures could not be loaded. Accurate specular IBL reflections " |
| 836 | "and LTC area lights won't be available or may not function properly!", |
| 837 | Ogre::LML_CRITICAL ); |
| 838 | } |
| 839 | } |
| 840 | //----------------------------------------------------------------------------------- |
| 841 | void GraphicsSystem::chooseSceneManager() |
| 842 | { |
nothing calls this directly
no test coverage detected