[add] 던전맵 추가

[fix] Resource Level 분리
[fix] Material 수정
This commit is contained in:
Chanbin Kim
2025-12-19 00:49:54 +09:00
parent a83a5430fb
commit 285e6d85ca
455 changed files with 6491 additions and 421 deletions
+6 -6
View File
@@ -1800,7 +1800,7 @@ void CModel::Bind_OutPut_SRV_VS(_uint iIndex, _uint iBufferIndex)
#ifdef _DEBUG
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix, _uint iLevel)
{
m_eType = eType;
_char szTextureFileName[MAX_PATH] = {};
@@ -1846,7 +1846,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
return E_FAIL;
}
if (FAILED(Ready_Materials(pModelFilePath))) {
if (FAILED(Ready_Materials(pModelFilePath, iLevel))) {
return E_FAIL;
}
if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) {
@@ -2285,13 +2285,13 @@ HRESULT CModel::Ready_Meshes()
return S_OK;
}
HRESULT CModel::Ready_Materials(const _char* pModelFilePath)
HRESULT CModel::Ready_Materials(const _char* pModelFilePath, _uint iLevel)
{
m_iNumMaterials = m_pSaveModel->MaterialCount;
for (size_t i = 0; i < m_iNumMaterials; i++)
{
CMaterial* pMaterial = CMaterial::Create(m_pDevice, m_pContext, pModelFilePath, m_pSaveModel->Materials[i]);
CMaterial* pMaterial = CMaterial::Create(m_pDevice, m_pContext, pModelFilePath, m_pSaveModel->Materials[i], iLevel);
if (nullptr == pMaterial)
return E_FAIL;
@@ -2337,11 +2337,11 @@ HRESULT CModel::Ready_Animations(const vector<CBone*>& Bones)
return S_OK;
}
CModel* CModel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
CModel* CModel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix, _uint iLevel)
{
CModel* pInstance = new CModel(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype(eType, pModelFilePath, PreTransformMatrix)))
if (FAILED(pInstance->Initialize_Prototype(eType, pModelFilePath, PreTransformMatrix, iLevel)))
{
MSG_BOX("Failed to Created : CModel");
SAFE_RELEASE(pInstance);