1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Make disabling shadows disable their performance impact, too.

This commit is contained in:
AnyOldName3 2017-12-26 23:51:50 +00:00
parent 4de3a361fb
commit c192c851db
2 changed files with 7 additions and 1 deletions

View File

@ -321,6 +321,12 @@ namespace SceneUtil
void MWShadow::cull(osgUtil::CullVisitor& cv)
{
if (!enableShadows)
{
_shadowedScene->osg::Group::traverse(cv);
return;
}
OSG_INFO << std::endl << std::endl << "ViewDependentShadowMap::cull(osg::CullVisitor&" << &cv << ")" << std::endl;
if (!_shadowCastingStateSet)

View File

@ -11,7 +11,7 @@ namespace SceneUtil
{
public:
static const int numberOfShadowMapsPerLight = 3;
static const int enableShadows = true;
static const bool enableShadows = true;
static const bool debugHud = true;
MWShadow();