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:
parent
4de3a361fb
commit
c192c851db
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user