Fix lighting in game engine
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sat, 23 Apr 2005 11:54:21 +0000 (11:54 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sat, 23 Apr 2005 11:54:21 +0000 (11:54 +0000)
source/gameengine/Rasterizer/RAS_MaterialBucket.cpp

index abc3495d3914edc7e6f7b0350340cbe32dcb430e..7f9f5b455ba8bb3f5221d96785753c74f4b03aa5 100644 (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 ?