draw stroke on top of diffuse

This commit is contained in:
Chris Danford
2008-03-27 05:58:37 +00:00
parent 03755922ce
commit b9cba048f4
+13 -13
View File
@@ -542,19 +542,6 @@ void BitmapText::DrawPrimitives()
DISPLAY->PopMatrix();
}
//
// render the stroke
//
bool bUsingStrokeTexture = !!m_vpFontPageTextures[0]->m_pTextureStroke;
if( bUsingStrokeTexture && m_StrokeColor.a > 0 )
{
RageColor c = m_StrokeColor;
c.a *= m_pTempState->diffuse[0].a;
for( unsigned i=0; i<m_aVertices.size(); i++ )
m_aVertices[i].c = c;
DrawChars( true );
}
//
// render the diffuse pass
//
@@ -641,6 +628,19 @@ void BitmapText::DrawPrimitives()
m_aVertices[i+3].p -= jitter; // top right
}
}
//
// render the stroke
//
bool bUsingStrokeTexture = !!m_vpFontPageTextures[0]->m_pTextureStroke;
if( bUsingStrokeTexture && m_StrokeColor.a > 0 )
{
RageColor c = m_StrokeColor;
c.a *= m_pTempState->diffuse[0].a;
for( unsigned i=0; i<m_aVertices.size(); i++ )
m_aVertices[i].c = c;
DrawChars( true );
}
}
/* render the glow pass */