From e9f08ce4957b62adf40df473f5716e8fbe71f247 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 21:05:29 +0800 Subject: [PATCH] --- helper.c | 1 + scene.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1