1
0
Fork 0

reflect-bump-spec shader improvement by i4dnf

This commit is contained in:
Frederic Bouvier 2010-11-20 21:21:05 +01:00
parent 355129ffac
commit 426b7f8ae3

View file

@ -92,9 +92,8 @@ void main (void)
//float pam = (map.a * -2) + 1; //reverse map
reflFactor = map.a + transparency_offset;
} else {
// set the reflectivity proportional to shininess with user
// input
reflFactor = (gl_FrontMaterial.shininess / 128) + transparency_offset;
// set the reflectivity proportional to shininess with user input
reflFactor = (gl_FrontMaterial.shininess / 128) * ns.a + transparency_offset;
}
reflFactor = clamp(reflFactor, 0.0, 1.0);