From 617473c7dadeb18a60bfcde70ffd350ab5654f3c Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Tue, 12 Dec 2017 18:06:20 +0000 Subject: [PATCH] Force near plane out further for LiSpSM projection --- apps/openmw/mwrender/renderingmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 52bc8de3c..9258b754f 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -211,7 +211,7 @@ namespace MWRender //settings->setShadowMapProjectionHint(osgShadow::ShadowSettings::PERSPECTIVE_SHADOW_MAP); settings->setBaseShadowTextureUnit(SceneUtil::MWShadow::baseShadowTextureUnit); - //settings->setMinimumShadowMapNearFarRatio(0); + settings->setMinimumShadowMapNearFarRatio(0.25); settings->setNumShadowMapsPerLight(SceneUtil::MWShadow::numberOfShadowMapsPerLight); //settings->setShadowMapProjectionHint(osgShadow::ShadowSettings::ORTHOGRAPHIC_SHADOW_MAP); //settings->setMultipleShadowMapHint(osgShadow::ShadowSettings::PARALLEL_SPLIT); // ignored