draw stroke on top of diffuse
This commit is contained in:
@@ -542,19 +542,6 @@ void BitmapText::DrawPrimitives()
|
|||||||
DISPLAY->PopMatrix();
|
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
|
// render the diffuse pass
|
||||||
//
|
//
|
||||||
@@ -641,6 +628,19 @@ void BitmapText::DrawPrimitives()
|
|||||||
m_aVertices[i+3].p -= jitter; // top right
|
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 */
|
/* render the glow pass */
|
||||||
|
|||||||
Reference in New Issue
Block a user