Make the debug hud enableable

pull/1547/head
AnyOldName3 7 years ago
parent 5d719e9d5f
commit 7b52091a82

@ -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);

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

Loading…
Cancel
Save