disable color

This commit is contained in:
Volodymyr Patuta 2020-12-12 22:30:59 +01:00
parent 09ff96ba53
commit 28dbebbaf3
1 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ void init(void) {
if(_use_lighting) { if(_use_lighting) {
enableSurfaceOption(_sphere, SO_USE_LIGHTING); enableSurfaceOption(_sphere, SO_USE_LIGHTING);
} }
disableSurfaceOption(_sphere, SO_USE_COLOR);
atexit(sortie); atexit(sortie);
} }
@ -108,7 +109,7 @@ void draw(void) {
lookAt(mvMat, _xcam, _ycam, 10, 0, 0, 0, 0, 1, 0); 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 */ /* la sphère est laissée au centre et tourne autour de son axe y */
memcpy(nmv, mvMat, sizeof nmv); /* copie mvMat dans nmv */ 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); transform_n_raster(_sphere, nmv, projMat);
/* déclarer qu'on a changé (en bas niveau) des pixels du screen */ /* déclarer qu'on a changé (en bas niveau) des pixels du screen */
gl4dpScreenHasChanged(); gl4dpScreenHasChanged();