commit 1488ee7db0ed9528e91dd37a99b8db51ef019b1e
parent d8a0b654059802b9b94b4ad1076e0f0df11b467c
Author: Yoann <yoann.b87@voila.fr>
Date: Tue, 11 Oct 2011 21:36:14 +0200
Deux trois modifications minimes.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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();
}