[add] Tonemapping
This commit is contained in:
@@ -733,9 +733,9 @@ HRESULT CGameInstance::Bind_PrevMatrix(CShader* pShader, const _char* pConstants
|
||||
return m_pRenderer->Bind_PrevMatrix(pShader, pConstants, eType);
|
||||
}
|
||||
|
||||
void CGameInstance::Set_Environment(_float3 vSSAO, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
|
||||
void CGameInstance::Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
|
||||
{
|
||||
m_pRenderer->Set_Environment(vSSAO);
|
||||
m_pRenderer->Set_Environment(vSSAO, fExposure);
|
||||
m_pPipeLine->Set_Environment(vNFBoxRatio, vSafeRadius, vShadowBias, vShadowRadius, vShadowBoxMarginMin, vShadowBoxMarginMax);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,11 +135,12 @@ HRESULT CRenderer::Bind_PrevMatrix(class CShader* pShader, const _char* pConstan
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRenderer::Set_Environment(_float3 vSSAO)
|
||||
void CRenderer::Set_Environment(_float3 vSSAO, _float fExposure)
|
||||
{
|
||||
m_fSSAO_Radius = vSSAO.x;
|
||||
m_fSSAO_BIAS = vSSAO.y;
|
||||
m_fSSAOStrength = vSSAO.z;
|
||||
m_fExposure = fExposure;
|
||||
// m_fSSAO_Radius = 0.585f;
|
||||
// m_fSSAO_BIAS = 0.182f;
|
||||
// m_fSSAOStrength = 2.83f;
|
||||
|
||||
@@ -107,7 +107,7 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
RENDER Get_CurrentRenderPass();
|
||||
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
void Set_Environment(_float3 vSSAO, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
|
||||
void Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
|
||||
#pragma endregion
|
||||
|
||||
#pragma region KEY_MANAGER
|
||||
|
||||
@@ -18,7 +18,7 @@ class CRenderer final : public CBase
|
||||
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
|
||||
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
void Set_Environment(_float3 vSSAO);
|
||||
void Set_Environment(_float3 vSSAO, _float fExposure);
|
||||
|
||||
#ifdef _DEBUG
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user