[fix] Clamp WB Revealage
This commit is contained in:
@@ -251,13 +251,13 @@ HRESULT CPlayer::Render()
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // 기무리
|
||||
#endif // _DEBUG
|
||||
//#ifdef _DEBUG
|
||||
//#ifdef 기무리
|
||||
// if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//#endif // 기무리
|
||||
//#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
|
||||
@@ -1478,7 +1478,7 @@ technique11 DefaultTechnique
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN_LEGACY();
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Player_Suit_DSRON_ToSRO();
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
|
||||
vector vMixedDiffuse = g_MixedDiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||
float fRevealage = g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r;
|
||||
float fRevealage = clamp(g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r, 0.f, 1.f);
|
||||
|
||||
|
||||
Out.vBackBuffer = vector(vMixedDiffuse.rgb / fRevealage , fRevealage);
|
||||
|
||||
@@ -51,7 +51,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
|
||||
vector vMixedDiffuse = g_MixedDiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||
float fRevealage = g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r;
|
||||
float fRevealage = clamp(g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r, 0.f, 1.f);
|
||||
|
||||
|
||||
Out.vBackBuffer = vector(vMixedDiffuse.rgb / fRevealage , fRevealage);
|
||||
|
||||
Reference in New Issue
Block a user