From 7d8d41838f07bc617b296004646d25a5ac7b9ef3 Mon Sep 17 00:00:00 2001 From: Kevin Slaughter Date: Tue, 22 Jun 2004 05:24:53 +0000 Subject: [PATCH] Fixed weird permanent on-screen shadow bug --- stepmania/src/BeginnerHelper.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BeginnerHelper.cpp b/stepmania/src/BeginnerHelper.cpp index 9a95f7626c..d6e9a3cc06 100644 --- a/stepmania/src/BeginnerHelper.cpp +++ b/stepmania/src/BeginnerHelper.cpp @@ -219,20 +219,28 @@ void BeginnerHelper::DrawPrimitives() m_mDancePad.Draw(); DISPLAY->ClearZBuffer(); // So character doesn't step "into" the dance pad. + DISPLAY->SetLightOff(0); + DISPLAY->SetLighting(false); } // Draw StepCircles - DISPLAY->SetLighting(false); for(int scd=0; scdSetLighting(true); if(DrawCelShaded) { FOREACH_PlayerNumber(pn) // Draw each dancer if(GAMESTATE->IsHumanPlayer(pn)) {m_mDancer[pn].DrawCelShaded();} } else { + DISPLAY->SetLighting( true ); + DISPLAY->SetLightDirectional( + 0, + RageColor(0.5,0.5,0.5,1), + RageColor(1,1,1,1), + RageColor(0,0,0,1), + RageVector3(0, 0, 1) ); + FOREACH_PlayerNumber(pn) // Draw each dancer if(GAMESTATE->IsHumanPlayer(pn)) {m_mDancer[pn].Draw();}