From: Ash Tyndall Date: Fri, 21 Oct 2011 08:46:36 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d5fa7415662b760e4c3b54c8aff44fd67d5d5572;p=atyndall%2Fcits2231.git --- diff --git a/helper.c b/helper.c index 68907c8..abdc56e 100644 --- a/helper.c +++ b/helper.c @@ -257,16 +257,20 @@ void drawFloor() { for ( int x = -floorSize; x < floorSize; x++ ) { for ( int z = -floorSize; z < floorSize; z++ ) { glColor3f( 1.0, 1.0, 1.0 ); - + + glNormal3i( 0, 1, 0 ); glTexCoord2f( 1.0, 1.0 ); glVertex3f ( (x+1)*squareSize, 0.0, (z+1)*squareSize ); + glNormal3i( 0, 1, 0 ); glTexCoord2f( 1.0, 0.0 ); glVertex3f ( (x+1)*squareSize, 0.0, z*squareSize ); + glNormal3i( 0, 1, 0 ); glTexCoord2f( 0.0, 0.0 ); glVertex3f ( x*squareSize, 0.0, z*squareSize ); + glNormal3i( 0, 1, 0 ); glTexCoord2f( 0.0, 1.0 ); glVertex3f ( x*squareSize, 0.0, (z+1)*squareSize ); }