From d291c4506bfac6d9dcaab81e9a239eb40e037a01 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 15:35:04 +0800 Subject: [PATCH] --- scene.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scene.c b/scene.c index 1c6fbd5..62ba908 100644 --- a/scene.c +++ b/scene.c @@ -110,10 +110,10 @@ char *dirDefault2 = "/cslinux/examples/CITS2231/project-files/models-textures"; char dataDir[200]; // Stores the directory name for the meshes and textures. static GLfloat floorVertices[4][3] = { - { -20.0, 0.0, 20.0 }, - { 20.0, 0.0, 20.0 }, - { 20.0, 0.0, -20.0 }, - { -20.0, 0.0, -20.0 }, + { -1000.0, 0.0, 1000.0 }, + { 1000.0, 0.0, 1000.0 }, + { 1000.0, 0.0, -1000.0 }, + { -1000.0, 0.0, -1000.0 }, }; static GLfloat lightColor[] = {1.0, 1.0, 1.0, 1.0}; // White light @@ -513,13 +513,13 @@ void drawFloor() { //} glBegin(GL_QUADS); - glTexCoord2f(0.0, 0.0); + //glTexCoord2f(0.0, 0.0); glVertex3fv(floorVertices[0]); - glTexCoord2f(0.0, 16.0); + //glTexCoord2f(0.0, 16.0); glVertex3fv(floorVertices[1]); - glTexCoord2f(16.0, 16.0); + //glTexCoord2f(16.0, 16.0); glVertex3fv(floorVertices[2]); - glTexCoord2f(16.0, 0.0); + //glTexCoord2f(16.0, 0.0); glVertex3fv(floorVertices[3]); glEnd(); -- 2.20.1