add Cel Shading drawing code. (I dunno, perhaps this should be part of
Model::Draw() instead of a separate function...)
This commit is contained in:
@@ -241,6 +241,14 @@ void BeginnerHelper::DrawPrimitives()
|
|||||||
|
|
||||||
m_sFlash.Draw();
|
m_sFlash.Draw();
|
||||||
|
|
||||||
|
bool DrawCelShaded = PREFSMAN->m_bCelShadeModels;
|
||||||
|
|
||||||
|
if(DrawCelShaded)
|
||||||
|
{
|
||||||
|
m_mDancePad.DrawCelShaded();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
DISPLAY->SetLighting( true );
|
DISPLAY->SetLighting( true );
|
||||||
DISPLAY->SetLightDirectional(
|
DISPLAY->SetLightDirectional(
|
||||||
0,
|
0,
|
||||||
@@ -250,9 +258,19 @@ void BeginnerHelper::DrawPrimitives()
|
|||||||
RageVector3(0, 0, 1) );
|
RageVector3(0, 0, 1) );
|
||||||
|
|
||||||
m_mDancePad.Draw();
|
m_mDancePad.Draw();
|
||||||
|
}
|
||||||
|
|
||||||
for( int scd=0; scd<NUM_PLAYERS*2; scd++ )
|
for( int scd=0; scd<NUM_PLAYERS*2; scd++ )
|
||||||
m_sStepCircle[scd].Draw(); // Should be drawn before the dancer, but after the pad, so it is drawn over the pad and under the dancer.
|
m_sStepCircle[scd].Draw(); // Should be drawn before the dancer, but after the pad, so it is drawn over the pad and under the dancer.
|
||||||
|
|
||||||
|
if(DrawCelShaded)
|
||||||
|
{
|
||||||
|
FOREACH_PlayerNumber( pn ) // Draw each dancer
|
||||||
|
if( GAMESTATE->IsHumanPlayer(pn) )
|
||||||
|
m_mDancer[pn].DrawCelShaded();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
FOREACH_PlayerNumber( pn ) // Draw each dancer
|
FOREACH_PlayerNumber( pn ) // Draw each dancer
|
||||||
if( GAMESTATE->IsHumanPlayer(pn) )
|
if( GAMESTATE->IsHumanPlayer(pn) )
|
||||||
m_mDancer[pn].Draw();
|
m_mDancer[pn].Draw();
|
||||||
@@ -260,6 +278,7 @@ void BeginnerHelper::DrawPrimitives()
|
|||||||
DISPLAY->SetLightOff( 0 );
|
DISPLAY->SetLightOff( 0 );
|
||||||
DISPLAY->SetLighting( false );
|
DISPLAY->SetLighting( false );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void BeginnerHelper::Step( int pn, int CSTEP )
|
void BeginnerHelper::Step( int pn, int CSTEP )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user