Lightmaps now working again

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40148
This commit is contained in:
kearwood
2012-10-31 20:04:25 +00:00
parent ad53aa78cc
commit 37ebc89c2c

View File

@@ -117,7 +117,7 @@ void KRInstance::render(KRCamera *pCamera, KRContext *pContext, const KRViewport
} }
if(cShadowBuffers == 0 && m_pLightMap && pCamera->bEnableLightMap && renderPass != RENDER_PASS_SHADOWMAP) { if(cShadowBuffers == 0 && m_pLightMap && pCamera->bEnableLightMap && renderPass != RENDER_PASS_SHADOWMAP) {
m_pContext->getTextureManager()->selectTexture(3, m_pLightMap, 0); m_pContext->getTextureManager()->selectTexture(3, m_pLightMap, 2048);
} }
pModel->render(pCamera, pContext, viewport, m_modelMatrix, lightDirection, pShadowMatrices, shadowDepthTextures, cShadowBuffers, m_pLightMap, renderPass); pModel->render(pCamera, pContext, viewport, m_modelMatrix, lightDirection, pShadowMatrices, shadowDepthTextures, cShadowBuffers, m_pLightMap, renderPass);