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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user