Browse Source

Commented dead code

pitch-detection
Macoy Madson 12 months ago
parent
commit
ed3950311c
  1. 19
      test/src/OgreHlms.cpp

19
test/src/OgreHlms.cpp

@ -59,15 +59,16 @@ void ogreCreatePbsSpheres(Ogre::Root* root, Ogre::SceneManager* sceneManager)
datablock->setTexture(Ogre::PBSM_REFLECTION, texture);
}
// Diffuse texture
{
Ogre::TextureGpu* texture = textureMgr->createOrRetrieveTexture(
"MonkeyTexture.dds", Ogre::GpuPageOutStrategy::Discard,
Ogre::TextureFlags::PrefersLoadingFromFileAsSRGB, Ogre::TextureTypes::Type2D,
Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
Ogre::TextureFilter::TypeGenerateDefaultMipmaps);
datablock->setTexture(Ogre::PBSM_DIFFUSE, texture);
}
// TODO: Does not work. Figure out how to set diffuse map in code
// // Diffuse texture
// {
// Ogre::TextureGpu* texture = textureMgr->createOrRetrieveTexture(
// "MonkeyTexture.dds", Ogre::GpuPageOutStrategy::Discard,
// Ogre::TextureFlags::PrefersLoadingFromFileAsSRGB, Ogre::TextureTypes::Type2D,
// Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
// Ogre::TextureFilter::TypeGenerateDefaultMipmaps);
// datablock->setTexture(Ogre::PBSM_DIFFUSE, texture);
// }
datablock->setDiffuse(Ogre::Vector3(0.0f, 1.0f, 0.0f));

Loading…
Cancel
Save