aboutsummaryrefslogtreecommitdiff
path: root/src/ConstantBuffers.cpp
diff options
context:
space:
mode:
authorlbavoil <[email protected]>2017-01-23 09:55:05 +0100
committerlbavoil <[email protected]>2017-01-23 09:55:05 +0100
commit0e07a80f8c1443e047e283f30693cf708a3204ea (patch)
tree460cb590a7dfc7d43a205f33fa0631f408b68940 /src/ConstantBuffers.cpp
parentPolish HLSL. No functional change. (diff)
downloadhbaoplus-0e07a80f8c1443e047e283f30693cf708a3204ea.tar.xz
hbaoplus-0e07a80f8c1443e047e283f30693cf708a3204ea.zip
HBAO+ 3.1.0.21602716
Diffstat (limited to 'src/ConstantBuffers.cpp')
-rw-r--r--src/ConstantBuffers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ConstantBuffers.cpp b/src/ConstantBuffers.cpp
index 0232cd0..7e2aa66 100644
--- a/src/ConstantBuffers.cpp
+++ b/src/ConstantBuffers.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2016, NVIDIA CORPORATION. All rights reserved.
+* Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
@@ -73,12 +73,12 @@ void GFSDK::SSAO::GlobalConstants::SetAOParameters(const GFSDK_SSAO_Parameters&
SetBlurConstants(Params.Blur, InputDepth);
SetDepthThresholdConstants(Params.DepthThreshold);
- m_Data.fPowExponent = Clamp(Params.PowerExponent, 1.f, 8.f);
+ m_Data.fPowExponent = Clamp(Params.PowerExponent, 1.f, 4.f);
m_Data.fNDotVBias = Clamp(Params.Bias, 0.0f, 0.5f);
const float AOAmountScaleFactor = 1.f / (1.f - m_Data.fNDotVBias);
- m_Data.fSmallScaleAOAmount = Clamp(Params.SmallScaleAO, 0.f, 4.f) * AOAmountScaleFactor * 2.f;
- m_Data.fLargeScaleAOAmount = Clamp(Params.LargeScaleAO, 0.f, 4.f) * AOAmountScaleFactor;
+ m_Data.fSmallScaleAOAmount = Clamp(Params.SmallScaleAO, 0.f, 2.f) * AOAmountScaleFactor * 2.f;
+ m_Data.fLargeScaleAOAmount = Clamp(Params.LargeScaleAO, 0.f, 2.f) * AOAmountScaleFactor;
}
//--------------------------------------------------------------------------------