diff --git a/window.c b/window.c index f9d862a..62e330d 100644 --- a/window.c +++ b/window.c @@ -87,6 +87,7 @@ void init(void) { if(_use_lighting) { enableSurfaceOption(_sphere, SO_USE_LIGHTING); } + disableSurfaceOption(_sphere, SO_USE_COLOR); atexit(sortie); } @@ -108,7 +109,7 @@ void draw(void) { lookAt(mvMat, _xcam, _ycam, 10, 0, 0, 0, 0, 1, 0); /* la sphère est laissée au centre et tourne autour de son axe y */ memcpy(nmv, mvMat, sizeof nmv); /* copie mvMat dans nmv */ - /*rotate(nmv, a, 0.0f, 1.0f, 0.0f);*/ + rotate(nmv, a, 0.0f, 1.0f, 0.0f); transform_n_raster(_sphere, nmv, projMat); /* déclarer qu'on a changé (en bas niveau) des pixels du screen */ gl4dpScreenHasChanged();