From 3416b837dceb12c38eb4c128b5f8c0c858cbb9b9 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 13 Nov 2013 02:31:55 -0600 Subject: [PATCH] Added setting 'SHAlwaysSoftenShadows' to soften shadows when ssao isn't enabled. Removed a couple dead settings. --- indra/newview/app_settings/settings_sh.xml | 33 ++++++++-------------- indra/newview/pipeline.cpp | 3 +- 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/indra/newview/app_settings/settings_sh.xml b/indra/newview/app_settings/settings_sh.xml index 732da64bf..998c3ff37 100644 --- a/indra/newview/app_settings/settings_sh.xml +++ b/indra/newview/app_settings/settings_sh.xml @@ -184,28 +184,6 @@ Boolean Value 0 - - SHPackDeferredNormals - - Comment - Pack deferred normals into two components. - Persist - 1 - Type - Boolean - Value - 0 - - SHPrecisionDeferredNormals - - Comment - Enable usage of RGB10A2 for the deferred normalMap format. Reduces normalmapping artifacts. - Persist - 1 - Type - Boolean - Value - 0 SHOcclusionFudge @@ -240,5 +218,16 @@ Value 0.09 + SHAlwaysSoftenShadows + + Comment + Enable optional blur pass on shadows. + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 18ba87865..42180df08 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -7921,7 +7921,8 @@ void LLPipeline::renderDeferredLighting() mDeferredLight.flush(); } - if (RenderDeferredSSAO) + static const LLCachedControl SHAlwaysSoftenShadows("SHAlwaysSoftenShadows",true); + if (RenderDeferredSSAO || (RenderShadowDetail > 0 && SHAlwaysSoftenShadows)) { //soften direct lighting lightmap LLFastTimer ftm(FTM_SOFTEN_SHADOW); //blur lightmap