try to avoid ClearZBuffer()
This commit is contained in:
@@ -290,11 +290,12 @@ void Model::DrawCelShaded()
|
|||||||
this->SetDiffuseAlpha(0);
|
this->SetDiffuseAlpha(0);
|
||||||
DISPLAY->SetPolygonMode( POLYGON_LINE );
|
DISPLAY->SetPolygonMode( POLYGON_LINE );
|
||||||
DISPLAY->SetLineWidth( 4 );
|
DISPLAY->SetLineWidth( 4 );
|
||||||
|
this->SetZWrite( false );
|
||||||
this->Draw();
|
this->Draw();
|
||||||
this->SetDiffuseAlpha(1);
|
this->SetDiffuseAlpha(1);
|
||||||
DISPLAY->ClearZBuffer();
|
|
||||||
this->SetGlow(RageColor(1,1,1,0));
|
this->SetGlow(RageColor(1,1,1,0));
|
||||||
DISPLAY->SetPolygonMode( POLYGON_FILL );
|
DISPLAY->SetPolygonMode( POLYGON_FILL );
|
||||||
|
this->SetZWrite( true );
|
||||||
this->Draw();
|
this->Draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user