code cleanup:

- define array sizes for functions that take vectors.
- quiet some -Wshadow warnings.
- some copy/paste error in readfile.c made it set the same particle recalc flag twice.
This commit is contained in:
Campbell Barton
2012-10-20 08:02:18 +00:00
parent 08dd8a6849
commit 9f8070d047
21 changed files with 105 additions and 82 deletions

View File

@@ -36,7 +36,7 @@ shader node_layer_weight(
Facing = abs(dot(I, Normal));
if (blend != 0.5) {
blend = clamp(blend, 0.0, 1.0-1e-5);
blend = clamp(blend, 0.0, 1.0 - 1e-5);
blend = (blend < 0.5) ? 2.0 * blend : 0.5 / (1.0 - blend);
Facing = pow(Facing, blend);
@@ -44,4 +44,3 @@ shader node_layer_weight(
Facing = 1.0 - Facing;
}