mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 15:36:40 +00:00
Make the debug hud enableable
This commit is contained in:
parent
5d719e9d5f
commit
7b52091a82
2 changed files with 14 additions and 0 deletions
|
@ -755,6 +755,16 @@ void MWShadowTechnique::enableShadows()
|
||||||
_enableShadows = false;
|
_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*/)
|
MWShadowTechnique::ViewDependentData* MWShadowTechnique::createViewDependentData(osgUtil::CullVisitor* /*cv*/)
|
||||||
{
|
{
|
||||||
return new ViewDependentData(this);
|
return new ViewDependentData(this);
|
||||||
|
|
|
@ -65,6 +65,10 @@ namespace SceneUtil {
|
||||||
|
|
||||||
virtual void disableShadows();
|
virtual void disableShadows();
|
||||||
|
|
||||||
|
virtual void enableDebugHUD();
|
||||||
|
|
||||||
|
virtual void disableDebugHUD();
|
||||||
|
|
||||||
class ComputeLightSpaceBounds : public osg::NodeVisitor, public osg::CullStack
|
class ComputeLightSpaceBounds : public osg::NodeVisitor, public osg::CullStack
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue