[add] OutLine_DSS

[fix] XMLPass
This commit is contained in:
kimnuri
2025-12-29 17:30:02 +09:00
parent 22be2e7e44
commit 53934ad221
21 changed files with 240 additions and 164 deletions
+2 -7
View File
@@ -95,7 +95,7 @@ HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader)
return m_Materials[iMaterialIndex]->Bind_SRV(pShader, m_eType);
}
HRESULT CModel::Begin(_uint iMeshIndex, CShader* pShader, _bool OutLine)
HRESULT CModel::Begin(_uint iMeshIndex, CShader* pShader)
{
if (iMeshIndex >= m_iNumMeshes) {
return E_FAIL;
@@ -107,12 +107,7 @@ HRESULT CModel::Begin(_uint iMeshIndex, CShader* pShader, _bool OutLine)
return E_FAIL;
}
HRESULT hr = { E_FAIL };
if (false == OutLine) {
hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_UsingPass());
}
else {
hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_OutLinePass());
}
hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_UsingPass());
return hr;
}