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:
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…
x
Reference in New Issue
Block a user