Better use of clamp
This commit is contained in:
parent
ee8d70b3bf
commit
52c646b2cc
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ void main (void)
|
||||||
reflFactor = (gl_FrontMaterial.shininess / 128) + transparency_offset;
|
reflFactor = (gl_FrontMaterial.shininess / 128) + transparency_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
reflFactor = clamp(reflFactor, 0.0, 1.0) * ns.a;
|
reflFactor = clamp(reflFactor * ns.a, 0.0, 1.0);
|
||||||
|
|
||||||
// set ambient adjustment to remove bluiness with user input
|
// set ambient adjustment to remove bluiness with user input
|
||||||
float ambient_offset = clamp(ambient_correction, -1.0, 1.0);
|
float ambient_offset = clamp(ambient_correction, -1.0, 1.0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue