Deux trois modifications minimes.

This commit is contained in:
Yoann 2011-10-11 21:36:14 +02:00
parent d8a0b65405
commit 1488ee7db0
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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();
}