reflect-bump-spec shader improvement by i4dnf
This commit is contained in:
parent
355129ffac
commit
426b7f8ae3
1 changed files with 2 additions and 3 deletions
|
@ -92,9 +92,8 @@ void main (void)
|
||||||
//float pam = (map.a * -2) + 1; //reverse map
|
//float pam = (map.a * -2) + 1; //reverse map
|
||||||
reflFactor = map.a + transparency_offset;
|
reflFactor = map.a + transparency_offset;
|
||||||
} else {
|
} else {
|
||||||
// set the reflectivity proportional to shininess with user
|
// set the reflectivity proportional to shininess with user input
|
||||||
// input
|
reflFactor = (gl_FrontMaterial.shininess / 128) * ns.a + transparency_offset;
|
||||||
reflFactor = (gl_FrontMaterial.shininess / 128) + transparency_offset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reflFactor = clamp(reflFactor, 0.0, 1.0);
|
reflFactor = clamp(reflFactor, 0.0, 1.0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue