|
|
@ -9,9 +9,6 @@
|
|
|
|
#include <OgreShadowCameraSetupPSSM.h>
|
|
|
|
#include <OgreShadowCameraSetupPSSM.h>
|
|
|
|
#include <OgreHardwarePixelBuffer.h>
|
|
|
|
#include <OgreHardwarePixelBuffer.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <OgreOverlayContainer.h>
|
|
|
|
|
|
|
|
#include <OgreOverlayManager.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <extern/shiny/Main/Factory.hpp>
|
|
|
|
#include <extern/shiny/Main/Factory.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "renderconst.hpp"
|
|
|
|
#include "renderconst.hpp"
|
|
|
@ -125,6 +122,7 @@ void Shadows::recreate()
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
// --------------------------- Debug overlays to display the content of shadow maps -----------------------------------
|
|
|
|
// --------------------------- Debug overlays to display the content of shadow maps -----------------------------------
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/*
|
|
|
|
if (Settings::Manager::getBool("debug", "Shadows"))
|
|
|
|
if (Settings::Manager::getBool("debug", "Shadows"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OverlayManager& mgr = OverlayManager::getSingleton();
|
|
|
|
OverlayManager& mgr = OverlayManager::getSingleton();
|
|
|
@ -181,6 +179,7 @@ void Shadows::recreate()
|
|
|
|
if ((overlay = mgr.getByName("DebugOverlay")))
|
|
|
|
if ((overlay = mgr.getByName("DebugOverlay")))
|
|
|
|
mgr.destroy(overlay);
|
|
|
|
mgr.destroy(overlay);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PSSMShadowCameraSetup* Shadows::getPSSMSetup()
|
|
|
|
PSSMShadowCameraSetup* Shadows::getPSSMSetup()
|
|
|
|