From 426b7f8ae3c493a7a737c7d160c61fb0fe413337 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 20 Nov 2010 21:21:05 +0100 Subject: [PATCH] reflect-bump-spec shader improvement by i4dnf --- Shaders/reflect-bump-spec.frag | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Shaders/reflect-bump-spec.frag b/Shaders/reflect-bump-spec.frag index fcc6d3850..859d21e40 100644 --- a/Shaders/reflect-bump-spec.frag +++ b/Shaders/reflect-bump-spec.frag @@ -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);