[merge commit]
This commit is contained in:
@@ -313,6 +313,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Diff")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "d")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
@@ -325,6 +328,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "normal")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Normal")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Norm")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
@@ -570,6 +576,9 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
|
||||
}
|
||||
}
|
||||
if (true == bBinded[iTextureType]) {
|
||||
if (0 == strcmp(pConstantName, "")) { // 미사용 SRV
|
||||
return S_OK;
|
||||
}
|
||||
if (FAILED(pShader->Bind_SRV(pConstantName, m_SRVs[iTextureType][0]))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user