diff options
| author | lbavoil <[email protected]> | 2016-04-20 10:22:03 +0200 |
|---|---|---|
| committer | lbavoil <[email protected]> | 2016-04-20 10:22:03 +0200 |
| commit | 71113a36d5de63110e79891b976040efa99763af (patch) | |
| tree | e653ca95335398d39d2a58bfec8ec2c53ac3e73f /src/ConstantBuffers.cpp | |
| parent | Update Linux build script (diff) | |
| download | hbaoplus-71113a36d5de63110e79891b976040efa99763af.tar.xz hbaoplus-71113a36d5de63110e79891b976040efa99763af.zip | |
Clamp the NearAO and FarAO parameters to [0,4] instead of [1,4]
Diffstat (limited to 'src/ConstantBuffers.cpp')
| -rw-r--r-- | src/ConstantBuffers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ConstantBuffers.cpp b/src/ConstantBuffers.cpp index 57f51ab..1d9235b 100644 --- a/src/ConstantBuffers.cpp +++ b/src/ConstantBuffers.cpp @@ -77,8 +77,8 @@ void GFSDK::SSAO::GlobalConstants::SetAOParameters(const GFSDK_SSAO_Parameters& m_Data.fNDotVBias = Clamp(Params.Bias, 0.0f, 0.5f); const float AOAmountScaleFactor = 1.f / (1.f - m_Data.fNDotVBias); - m_Data.fNearAOAmount = Clamp(Params.NearAO, 1.f, 4.f) * AOAmountScaleFactor * 2.f; - m_Data.fFarAOAmount = Clamp(Params.FarAO, 1.f, 4.f) * AOAmountScaleFactor; + m_Data.fNearAOAmount = Clamp(Params.NearAO, 0.f, 4.f) * AOAmountScaleFactor * 2.f; + m_Data.fFarAOAmount = Clamp(Params.FarAO, 0.f, 4.f) * AOAmountScaleFactor; } //-------------------------------------------------------------------------------- |