Vulkan Refactoring - Updated KRTextureManager::selectTexture call sites to use KRShader::setImageBinding

This commit is contained in:
2022-09-18 23:59:08 -07:00
parent 9a84a3a07b
commit be6c3a148e
8 changed files with 20 additions and 36 deletions

View File

@@ -217,7 +217,9 @@ void KRModel::render(KRNode::RenderInfo& ri)
}
if (m_pLightMap && ri.camera->settings.bEnableLightMap && ri.renderPass != RENDER_PASS_SHADOWMAP && ri.renderPass != RENDER_PASS_GENERATE_SHADOWMAPS) {
m_pContext->getTextureManager()->selectTexture(5, m_pLightMap, lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
m_pLightMap->resetPoolExpiry(lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
// TODO - Vulkan refactoring. We need to bind the shadow map in KRMesh::Render
// m_pContext->getTextureManager()->selectTexture(5, m_pLightMap, lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
}
Matrix4 matModel = getModelMatrix();