Cycles/ Layer Weight Node:
[blender.git] / intern / cycles / kernel / osl / nodes / node_layer_weight.osl
index dc3eb81d7122d7cf013c3634431f4c2527a74525..40b60fee7d3cbf77ec46fc5f82dd22b98a03a2cd 100644 (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); 
+               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);