push
This commit is contained in:
@@ -88,7 +88,7 @@ DepthStencilState DSS_Effect
|
||||
DepthStencilState DSS_Default_Environment_SWrite
|
||||
{
|
||||
DepthEnable = true;
|
||||
DepthWriteMask = false;
|
||||
DepthWriteMask = true;
|
||||
DepthFunc = less_equal;
|
||||
|
||||
StencilEnable = true;
|
||||
@@ -108,7 +108,7 @@ DepthStencilState DSS_Default_Environment_SWrite
|
||||
DepthStencilState DSS_Default_Environment_SRead
|
||||
{
|
||||
DepthEnable = true;
|
||||
DepthWriteMask = true;
|
||||
DepthWriteMask = false;
|
||||
DepthFunc = less_equal;
|
||||
|
||||
StencilEnable = true;
|
||||
|
||||
@@ -257,12 +257,13 @@ float4 DrawEffect(PS_IN In)
|
||||
|
||||
if (vDelay.y > FLT_EPSILON5)
|
||||
{
|
||||
if (vDelay.x <= vDelay.y)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (vDelay.x <= vDelay.y)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
||||
|
||||
if (g_isDiffuse == true)
|
||||
{
|
||||
@@ -592,14 +593,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
int2 iTexel = int2(In.vPosition.xy);
|
||||
//int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
float fbias = 0.000005f;
|
||||
//float fbias = 0.000005f;
|
||||
|
||||
if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
discard;
|
||||
//if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
// discard;
|
||||
|
||||
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ DepthStencilState DSS_Effect
|
||||
DepthStencilState DSS_Default_Environment_SWrite
|
||||
{
|
||||
DepthEnable = true;
|
||||
DepthWriteMask = false;
|
||||
DepthWriteMask = true;
|
||||
DepthFunc = less_equal;
|
||||
|
||||
StencilEnable = true;
|
||||
@@ -108,7 +108,7 @@ DepthStencilState DSS_Default_Environment_SWrite
|
||||
DepthStencilState DSS_Default_Environment_SRead
|
||||
{
|
||||
DepthEnable = true;
|
||||
DepthWriteMask = true;
|
||||
DepthWriteMask = false;
|
||||
DepthFunc = less_equal;
|
||||
|
||||
StencilEnable = true;
|
||||
|
||||
@@ -64,7 +64,7 @@ void CRenderer::Render()
|
||||
Render_Blur();
|
||||
Render_Combined();
|
||||
Render_Occlusion();
|
||||
Render_EnvironmentPostProcess();
|
||||
//Render_EnvironmentPostProcess();
|
||||
Render_Effect();
|
||||
Render_NonLight();
|
||||
Render_Blend();
|
||||
@@ -535,13 +535,15 @@ void CRenderer::Render_Bloom()
|
||||
if (FAILED(pRenderObject->Render_Bloom())) {
|
||||
assert(false);
|
||||
}
|
||||
if(true == m_bPostProcessing_BLOOM) {
|
||||
//{ // BackBuffer
|
||||
// ID3D11Texture2D* pBackBuffer = nullptr;
|
||||
// m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
|
||||
// //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
|
||||
// m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
|
||||
// SAFE_RELEASE(pBackBuffer);
|
||||
|
||||
//if (true == m_bPostProcessing_BLOOM) {
|
||||
// //{ // BackBuffer
|
||||
// // ID3D11Texture2D* pBackBuffer = nullptr;
|
||||
// // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
|
||||
// // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
|
||||
// // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
|
||||
// // SAFE_RELEASE(pBackBuffer);
|
||||
// //
|
||||
//}
|
||||
|
||||
|
||||
@@ -920,6 +922,7 @@ HRESULT CRenderer::Initialize()
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_WB"), TEXT("Target_Color")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
m_pShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_DEFERRED, nullptr, nullptr);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user