From 4f9a687dab8fdb767e9632e45ee417dec271421e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 17 Jul 2003 06:11:32 +0000 Subject: [PATCH] We light hold heads; light tails, too. --- stepmania/src/NoteDisplay.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index fae0e515e4..795179aa88 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -633,7 +633,25 @@ void NoteDisplay::DrawHoldTail( const HoldNote& hn, bool bActive, float fYTail, pSprTail->SetDiffuse( colorDiffuse ); pSprTail->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) ); + } + pSprTail->Draw(); + + if( cache->m_bUseLighting ) + { + DISPLAY->SetLightOff( 0 ); + DISPLAY->SetLighting( false ); + } } void NoteDisplay::DrawHoldHead( const HoldNote& hn, bool bActive, float fYHead, int iCol, float fPercentFadeToFail, float fColorScale, bool bGlow )