X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=bd927d9bb5324400254c8bdd581af10cb1a647da;hb=42f7093208bb77a0973435339f4e4361f402eb13;hp=347e681a3e826928cdc7f3179a9ccdd04d2346e2;hpb=ade8e2c782d2453bcd6efabbb3ae1f1d00c36418;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 347e681..bd927d9 100644 --- a/scene.c +++ b/scene.c @@ -295,10 +295,10 @@ void display() { if ( width > height ) aspect = (float)width / (float)height; gluPerspective( - 90.0, + 75.0, aspect, 0.1, - 100 + 200 ); glMatrixMode(GL_MODELVIEW); @@ -410,6 +410,7 @@ int main(int argc, char **argv) { glDepthFunc(GL_LEQUAL); // the type glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); + glEnable(GL_NORMALIZE); glLineWidth(1.0); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);