Mercurial > hg > forks > gldragon
changeset 54:73fa5fb437a0
Fumbling around.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Dec 2019 22:41:33 +0200 |
parents | d871e4b24328 |
children | bf73a2a70ec7 |
files | gldragon.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);