From: Ash Tyndall Date: Tue, 18 Oct 2011 12:23:52 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9621f7294b73aa8f7d8e6ca9227810cb79be1c92;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index a74a6df..d37b0f0 100644 --- a/scene.c +++ b/scene.c @@ -125,7 +125,7 @@ int lightMoving = 0, lightStartX, lightStartY; /* Time varying or user-controled variables. */ static float jump = 0.0; -static float lightAngle = 0.0, lightHeight = 40; +static float lightAngle = 0.0, lightHeight = 5; GLfloat angle = -150; /* in degrees */ GLfloat angle2 = 30; /* in degrees */ @@ -613,7 +613,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 80.0, /* eye is at (x,y,z) */ + 0.0, 0.0, 10.0, /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ );