From: Ash Tyndall Date: Thu, 20 Oct 2011 13:05:29 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=e9f08ce4957b62adf40df473f5716e8fbe71f247;hp=33984a24a94f3f04b1b4fc2d6037a55e0ee91962 --- diff --git a/helper.c b/helper.c index 8d45489..9fd6e32 100644 --- a/helper.c +++ b/helper.c @@ -235,6 +235,7 @@ void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) { // Draw square. // **NOTE: Is the polygon facing in the right direction? glBegin(GL_QUADS); + glNormal3f(0,1,0); glVertex3f(x1, 0.0, z1); glVertex3f(x1, 0.0, z2); glVertex3f(x2, 0.0, z2); diff --git a/scene.c b/scene.c index 34a18e4..264d598 100644 --- a/scene.c +++ b/scene.c @@ -364,7 +364,6 @@ void init() { glLoadIdentity(); // **NOTE: Needs tidy -glEnable(GL_NORMALIZE); glLightfv(GL_LIGHT0, GL_POSITION, light0_pos); glLightfv(GL_LIGHT0, GL_AMBIENT, ambient0); glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse0);