# HG changeset patch # User Matti Hamalainen # Date 1575664893 -7200 # Node ID 73fa5fb437a0697bd1153c60cceb84f220567c86 # Parent d871e4b2432879d959306f62e10b95a1f6223cd2 Fumbling around. diff -r d871e4b24328 -r 73fa5fb437a0 gldragon.cpp --- a/gldragon.cpp Fri Dec 06 19:21:24 2019 +0200 +++ b/gldragon.cpp Fri Dec 06 22:41:33 2019 +0200 @@ -224,7 +224,6 @@ // Enable normal rescaling glEnable(GL_RESCALE_NORMAL); - glEnable(GL_COLOR_MATERIAL); // Setup depth buffer glClearDepth(1.0f); @@ -255,6 +254,7 @@ } // Set the material of the model + glEnable(GL_COLOR_MATERIAL); glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE); glMateriali(GL_FRONT, GL_SHININESS, model.material.shininess); glMaterialfv(GL_FRONT, GL_SPECULAR, model.material.specular.values);