Fix lighting in game engine

This commit is contained in:
Kester Maddock
2005-04-23 11:54:21 +00:00
parent 2ac1ef13e2
commit 32daf2cdc4

View File

@@ -181,13 +181,11 @@ bool RAS_MaterialBucket::ActivateMaterial(const MT_Transform& cameratrans, RAS_I
if ((rasty->GetDrawingMode() <= RAS_IRasterizer::KX_SOLID) || !dolights)
{
// bool bUseLights = rendertools->ProcessLighting(-1); /*unused*/
;
rendertools->ProcessLighting(-1);
}
else
{
// bool bUseLights = rendertools->ProcessLighting(m_material->GetLightLayer()); /*unused*/
;
rendertools->ProcessLighting(m_material->GetLightLayer());
}
drawmode = (rasty->GetDrawingMode() < RAS_IRasterizer::KX_SOLID ?