Browse Source

clamp shininess at 128

David Rose 16 years ago
parent
commit
3f6192c963
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -4516,7 +4516,7 @@ do_issue_material() {
 
 
   GLP(Materialfv)(face, GL_SPECULAR, material->get_specular().get_data());
   GLP(Materialfv)(face, GL_SPECULAR, material->get_specular().get_data());
   GLP(Materialfv)(face, GL_EMISSION, material->get_emission().get_data());
   GLP(Materialfv)(face, GL_EMISSION, material->get_emission().get_data());
-  GLP(Materialf)(face, GL_SHININESS, material->get_shininess());
+  GLP(Materialf)(face, GL_SHININESS, min(material->get_shininess(), 128.0f));
 
 
   if (material->has_ambient() && material->has_diffuse()) {
   if (material->has_ambient() && material->has_diffuse()) {
     // The material has both an ambient and diffuse specified.  This
     // The material has both an ambient and diffuse specified.  This