diff --git a/display.c b/display.c index 46a9550..97b165d 100644 --- a/display.c +++ b/display.c @@ -18,7 +18,7 @@ int initWindow() { float Light1Dif[4] = {1.0f, 1.0f, 1.0f, 1.0f}; float Light1Spec[4] = {0.0f, 0.0f, 0.0f, 1.0f}; float Light1Amb[4] = {0.4f, 0.4f, 0.4f, 1.0f}; - float shininess = 10.0f; + float shininess = 128.0f; glMaterialfv(GL_FRONT_AND_BACK,GL_SPECULAR,MatSpec); glMaterialfv(GL_FRONT_AND_BACK,GL_DIFFUSE,MatDif); diff --git a/display.h b/display.h index c48ab86..ef0fe24 100644 --- a/display.h +++ b/display.h @@ -19,7 +19,7 @@ int windowWidth = 1024; int windowHeight = 768; int nbVertex = 0; -int cameraDist = 2000; +int cameraDist = 3000; int xSight = 0; int ySight = 0; diff --git a/square.c b/square.c index 504c879..a1f8335 100644 --- a/square.c +++ b/square.c @@ -283,7 +283,7 @@ void QT_enumerate(QTNode* first) { // Nécessaire ssi on fait un TRIANGLE_FAN et qu'on ne peut pas lui dire de fermer la boucle. // On renvoie le 1er vertex du bord : (void)(n->vertices[QT_NO]); - //setNormal(center,va,n->vertices[QT_NO]); + setNormal(center,va,n->vertices[QT_NO]); glVertex3f(n->vertices[QT_NO]->x,n->vertices[QT_NO]->y,n->vertices[QT_NO]->z); glEnd(); }