(no commit message)
authorAsh Tyndall <git@atyndall.net>
Thu, 20 Oct 2011 13:05:29 +0000 (21:05 +0800)
committerAsh Tyndall <git@atyndall.net>
Thu, 20 Oct 2011 13:05:29 +0000 (21:05 +0800)
helper.c
scene.c

index 8d45489..9fd6e32 100644 (file)
--- 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 (file)
--- a/scene.c
+++ b/scene.c
@@ -364,7 +364,6 @@ void init() {
   glLoadIdentity();\r
 \r
   // **NOTE: Needs tidy\r
-glEnable(GL_NORMALIZE);\r
   glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);\r
   glLightfv(GL_LIGHT0, GL_AMBIENT, ambient0);\r
   glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse0);\r

UCC git Repository :: git.ucc.asn.au