Skip to content

Commit

Permalink
Revert "don't render shadows... they dont even work according to othe…
Browse files Browse the repository at this point in the history
…r comments on the matter"

There appears to be minimal fps hit with the optimized DrawChars function, but if this becomes an issue I can implement a faster one.

This reverts commit ce38224.
  • Loading branch information
xwidghet committed Dec 21, 2017
1 parent a96d1dd commit 77a529f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/BitmapText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,21 @@ void BitmapText::DrawPrimitives()
// Draw if we're not fully transparent or the zbuffer is enabled
if( m_pTempState->diffuse[0].a != 0 )
{
// render the shadow
if( m_fShadowLengthX != 0 || m_fShadowLengthY != 0 )
{
DISPLAY->PushMatrix();
DISPLAY->TranslateWorld( m_fShadowLengthX, m_fShadowLengthY, 0 );

RageColor c = m_ShadowColor;
c.a *= m_pTempState->diffuse[0].a;
for( unsigned i=0; i<m_aVertices.size(); i++ )
m_aVertices[i].c = c;
DrawChars( false );

DISPLAY->PopMatrix();
}

// render the stroke
RageColor stroke_color= GetCurrStrokeColor();
if( stroke_color.a > 0 )
Expand Down

0 comments on commit 77a529f

Please sign in to comment.