Fix #31754: strand width fade value 2.0 gives wrong result, should fade out
[blender.git] / source / blender / render / intern / source / strand.c
index 7e0744096b370b508af1d2d914e96d04bb74d492..0e7c8a13043a657dcff16d306ead4808ef770440 100644 (file)
@@ -400,7 +400,7 @@ void strand_shade_segment(Render *re, StrandShadeCache *cache, StrandSegment *ss
        interpolate_shade_result(&shr1, &shr2, t, ssamp->shr, addpassflag);
 
        /* apply alpha along width */
-       if (sseg->buffer->widthfade != 0.0f) {
+       if (sseg->buffer->widthfade != -1.0f) {
                s = 1.0f - powf(fabsf(s), sseg->buffer->widthfade);
 
                strand_apply_shaderesult_alpha(ssamp->shr, s);