Mercurial > hg > forks > gldragon
changeset 20:294c4c7943b5
Cosmetic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Nov 2019 00:14:16 +0200 |
parents | a329f0216491 |
children | 1404dfcee7b8 |
files | glxdragon.cpp |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/glxdragon.cpp Thu Nov 07 20:15:33 2019 +0200 +++ b/glxdragon.cpp Fri Nov 22 00:14:16 2019 +0200 @@ -544,16 +544,15 @@ glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE); glMateriali(GL_FRONT, GL_SHININESS, 96); - glMaterialfv(GL_FRONT, GL_SPECULAR, specReflection); glEnable(GL_LIGHT0); // Define the light components and position - GLfloat ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f }; - GLfloat diffuse[] = { 0.8f, 0.8f, 0.8f, 1.0f }; - GLfloat specular[] = { 0.5f, 0.5f, 0.5f, 1.0f }; - GLfloat position[] = { 10.0f, 10.0f, 0.0f, 0.0f }; + GLfloat ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f }; + GLfloat diffuse[] = { 0.8f, 0.8f, 0.8f, 1.0f }; + GLfloat specular[] = { 0.5f, 0.5f, 0.5f, 1.0f }; + GLfloat position[] = { 10.0f, 10.0f, 0.0f, 0.0f }; // Define the light components and position glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);