dlist-tri-flat-tri: make tri render differently if flatshade not enabled

When testing flat-shading, it helps to specify per-vertex colors so
that you can distinguish between flat & smooth shading.
This commit is contained in:
Keith Whitwell 2009-06-30 16:57:21 +01:00
parent 4147bb24d4
commit 1730eaa2a2
1 changed files with 3 additions and 1 deletions

View File

@ -70,9 +70,11 @@ static void Init(void)
*/
glShadeModel( GL_FLAT );
glBegin(GL_TRIANGLES);
glColor3f(0,1,0);
glColor3f(1,0,0);
glVertex3f( -0.5, 0.5, -30.0);
glColor3f(0,1,0);
glVertex3f( -0.5, -0.5, -30.0);
glColor3f(0,0,1);
glVertex3f( 0.5, 0.0, -30.0);
glEnd();