Fixed rendering of objects with specular color so that specular lighting is disabled when rendering is complete.

ver1_5_1
Chris Laurel 2002-01-09 23:01:58 +00:00
parent cd205c74e5
commit eaf89aeca1
1 changed files with 8 additions and 0 deletions

View File

@ -108,6 +108,14 @@ void Mesh3DS::render(unsigned int attributes, float)
(*i)->render();
}
if (specularOn)
{
float matSpecular[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
float zero = 0.0f;
glMaterialfv(GL_FRONT, GL_SPECULAR, matSpecular);
glMaterialfv(GL_FRONT, GL_SHININESS, &zero);
}
}
void Mesh3DS::render(unsigned int attributes, const Frustum&, float lod)