1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Make the debug hud enableable

This commit is contained in:
AnyOldName3 2018-02-26 20:36:43 +00:00
parent 5d719e9d5f
commit 7b52091a82
2 changed files with 14 additions and 0 deletions

View File

@ -755,6 +755,16 @@ void MWShadowTechnique::enableShadows()
_enableShadows = false;
}
void SceneUtil::MWShadowTechnique::enableDebugHUD()
{
_debugHud = new DebugHUD(getShadowedScene()->getShadowSettings()->getNumShadowMapsPerLight());
}
void SceneUtil::MWShadowTechnique::disableDebugHUD()
{
_debugHud = nullptr;
}
MWShadowTechnique::ViewDependentData* MWShadowTechnique::createViewDependentData(osgUtil::CullVisitor* /*cv*/)
{
return new ViewDependentData(this);

View File

@ -65,6 +65,10 @@ namespace SceneUtil {
virtual void disableShadows();
virtual void enableDebugHUD();
virtual void disableDebugHUD();
class ComputeLightSpaceBounds : public osg::NodeVisitor, public osg::CullStack
{
public: