aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlbavoil <[email protected]>2016-04-20 10:22:03 +0200
committerlbavoil <[email protected]>2016-04-20 10:22:03 +0200
commit71113a36d5de63110e79891b976040efa99763af (patch)
treee653ca95335398d39d2a58bfec8ec2c53ac3e73f /src
parentUpdate Linux build script (diff)
downloadhbaoplus-71113a36d5de63110e79891b976040efa99763af.tar.xz
hbaoplus-71113a36d5de63110e79891b976040efa99763af.zip
Clamp the NearAO and FarAO parameters to [0,4] instead of [1,4]
Diffstat (limited to 'src')
-rw-r--r--src/ConstantBuffers.cpp4
-rw-r--r--src/RenderTargets_DX12.h1
-rw-r--r--src/Shaders_DX12.h1
3 files changed, 2 insertions, 4 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;
}
//--------------------------------------------------------------------------------
diff --git a/src/RenderTargets_DX12.h b/src/RenderTargets_DX12.h
index 3599a87..4ba4901 100644
--- a/src/RenderTargets_DX12.h
+++ b/src/RenderTargets_DX12.h
@@ -175,7 +175,6 @@ public:
RTTexture2DArray()
: RTTexture2D()
{
- // @jihoc How to initialize handles?
ZERO_ARRAY(SRVs);
ZERO_ARRAY(RTVs);
}
diff --git a/src/Shaders_DX12.h b/src/Shaders_DX12.h
index a210296..89a6ce3 100644
--- a/src/Shaders_DX12.h
+++ b/src/Shaders_DX12.h
@@ -24,7 +24,6 @@ struct VertexShader
{
VertexShader()
{
- // Use proper heap here @jihoc
VS.BytecodeLength = 0;
VS.pShaderBytecode = nullptr;
}