From 4dfb7ee6a43aeb78f16df2b2c94c49241a81de03 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 10 Jul 2003 03:38:45 +0000 Subject: [PATCH] lighting for hold heads --- stepmania/src/NoteDisplay.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index 417be4a5fe..d2dd99585f 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -699,7 +699,25 @@ void NoteDisplay::DrawHold( const HoldNote& hn, const bool bActive, const float pActor->SetDiffuse( colorDiffuse ); pActor->SetGlow( RageColor(0,0,0,0) ); } + + if( cache->m_bUseLighting ) + { + DISPLAY->SetLighting( true ); + DISPLAY->SetLightDirectional( + 0, + RageColor(0.1f,0.1f,0.1f,1), + RageColor(1,1,1,1), + RageColor(1,1,1,1), + RageVector3(1, 0, +1) ); + } + pActor->Draw(); + + if( cache->m_bUseLighting ) + { + DISPLAY->SetLightOff( 0 ); + DISPLAY->SetLighting( false ); + } } // now, draw the glow pass @@ -743,7 +761,7 @@ void NoteDisplay::DrawTap( const int iCol, const float fBeat, const bool bOnSame DISPLAY->SetLighting( true ); DISPLAY->SetLightDirectional( 0, - RageColor(0.0f,0.0f,0.0f,1), + RageColor(0.1f,0.1f,0.1f,1), RageColor(1,1,1,1), RageColor(1,1,1,1), RageVector3(1, 0, +1) );